Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 891 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 891 Bytes

Solidity contracts for Sphinx

This repository contains Solidity contracts required for on-chain verification of Sphinx proofs.

To install these contracts in your Foundry project:

forge install lurk-lab/sphinx-contracts --no-commit

Updating the contracts

This section outlines the steps required to update the Sphinx contracts repository with a new Sphinx version. Follow these instructions to ensure the Sphinx contracts are correctly updated and aligned with the latest version.

  1. Change the branch in Cargo.toml to the target sphinx branch.
[dependencies]
sphinx-sdk = { git = "ssh://[email protected]/lurk-lab/sphinx", branch = "<BRANCH>" }
  1. Update artifacts program with the new verifier contracts.
cargo update

cargo run --bin artifacts --release
  1. Open a PR to commit the changes to main.