- This is the x402 Cross Chain Confidential Payment built on Aztec Network, which the smart contract is written in Noir.
- Also, this project is built on the Aztec EVM Bridge (powered by Substance Labs) to enable the cross chain confidential payment.
-
Smart Contract:
Noir- nargo/noirc:
v1.0.0-beta.16
- nargo/noirc:
-
Blockchain:
AztecNetwork (Ethereum L2 Rollup)- aztec package:
v3.0.0-devnet.2
- aztec package:
- This repo is originally forked from the aztec-workshop repo.
- Install Aztec by following the instructions from their documentation.
- Install the dependencies by running:
yarn install - Ensure you have Docker installed and running (required for Aztec sandbox)
The complete build pipeline includes cleaning, compiling Noir contracts, and generating TypeScript artifacts:
yarn cccThis runs:
yarn clean- Removes all build artifactsyarn compile- Compiles Noir contracts using aztec-nargoyarn codegen- Generates TypeScript bindings from compiled contracts
NOTE:
- Currently, the
partial_att_verifieris moved to thenr/pendingdirectory - due tocompile errors-caused by theaztec-packagesversion mismatch (v3.0.0-devnet.2andv3.0.0-devnet.5).
Test your contract logic directly:
yarn test:nrTest contract interactions through TypeScript:
yarn test:js