haythemsellami / aztec-packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aztec Monorepo

All the packages that make up Aztec.

  • circuits: C++ code for circuits and cryptographic functions
  • l1-contracts: Solidity code for the Ethereum contracts that process rollups
  • yarn-project: Typescript code for client and backend

Issues Board

All issues being worked on are tracked on the Aztec Github Project. For a higher-level roadmap, check the milestones overview section of our docs.

Development Setup

Run bootstrap.sh in the project root to set up your environment. This will update git submodules, download ignition transcripts, build all C++ circuits code, install Foundry, compile Solidity contracts, install the current node version via nvm, and build all typescript packages.

To build the C++ code, follow the instructions in the circuits subdirectory, which contains all of the ZK circuit logic for Aztec. Note that "barretenberg", Aztec's underlying cryptographic library, can be found inside the circuits subdirectory as well and is automatically built as a side effect of building the circuits.

To build Typescript code, make sure to have nvm (node version manager) installed.

To build noir code, make sure that you are using the aztec tagged version of nargo. This is the latest pin version the team works on to ensure local and ci environments are in sync. This should be installed through noir-contracts/bootstrap.sh and the regular bootstrap.sh script. However if you find yourself wanting to update to the latest aztec tag outside of these channels, you can run noirup -v aztec to manually download the latest binaries.

Continuous Integration

This repository uses CircleCI for continuous integration. Build steps are managed using build-system. Small packages are built and tested as part of a docker build operation, while larger ones and end-to-end tests spin up a large AWS spot instance. Each successful build step creates a new docker image that gets tagged with the package name and commit.

All packages need to be included in the build manifest, which declares what paths belong to each package, as well as dependencies between packages. When the CI runs, if none of the rebuild patterns or dependencies were changed, then the build step is skipped and the last successful image is re-tagged with the current commit. Read more on the build-system repository README.

Debugging

Logging goes through the info and debug functions in C++, and through the DebugLogger module in Typescript. To see the log output, set a DEBUG environment variable to the name of the module you want to debug, to aztec:*, or to * to see all logs.

Contribute

There are many ways you can participate and help build high quality software. Check out the contribution guide!

About

License:Apache License 2.0


Languages

Language:C++ 79.0%Language:TypeScript 12.1%Language:Solidity 2.4%Language:Shell 1.7%Language:Rust 1.5%Language:C 1.4%Language:CMake 0.7%Language:Roff 0.3%Language:JavaScript 0.2%Language:HTML 0.2%Language:Python 0.2%Language:Dockerfile 0.1%Language:Makefile 0.0%Language:Jupyter Notebook 0.0%Language:Nix 0.0%Language:Perl 0.0%Language:WebAssembly 0.0%