Skip to main content

Chinstrap installation

Requirements and dependenciesโ€‹

  • Python >= 3.7
  • Docker
  • Node.js
  • Homebrew needs to be installed.

Open a terminal and run:

โžœ brew tap cuber/homebrew-libsecp256k1
โžœ brew install libsodium libsecp256k1 gmp

To install Chinstrap from pypi, open a terminal and run:

โžœ pip3 install -U chinstrap

To install Chinstrap v1.0.1 from Github, open a terminal and run:

โžœ git clone https://github.com/ant4g0nist/chinstrap
โžœ cd chinstrap
โžœ pip3 install . -U

M1 (ARM)โ€‹

In case secp256k1 or gmp cannot find either include or lib paths, try explicitly set environment vars:

export CFLAGS="-I`brew --prefix gmp`/include -I`brew --prefix libsecp256k1`/include"
export LDFLAGS="-L`brew --prefix gmp`/lib -L`brew --prefix libsecp256k1`/lib"
pip3 install . -U

or follow instructions from pytezos

For more info, you can refer to the official documentation