Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 955 Bytes

Develop.md

File metadata and controls

39 lines (25 loc) · 955 Bytes

Develop

Tools

IDE: Visual Studio Code

Plugin: Cairo

Environment: python3 gmp cairo-lang

Install cairo env

  • We recommend working inside a python virtual environment, but you can also install the Cairo package directly. To create and enter the virtual environment, type:
python3 -m venv ./cairo_venv
source ./cairo_venv/bin/activate
  • Make sure you can install the following pip packages: ecdsa, fastecdsa, sympy (using pip3 install ecdsa fastecdsa sympy). On Ubuntu, for example, you will have to first run:
sudo apt install -y libgmp3-dev
  • On Mac, you can use brew:
brew install gmp
  • Install dependencies:
pip3 install --upgrade pip
pip3 install --upgrade -r requirements.txt
  • Set cairo-format in Visual Studio Code: "cairo.cairoFormatPath": "[Project Root Path]/cairo_venv/bin/cairo-format"