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
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.
- Change the branch in
Cargo.toml
to the targetsphinx
branch.
[dependencies]
sphinx-sdk = { git = "ssh://[email protected]/lurk-lab/sphinx", branch = "<BRANCH>" }
- Update
artifacts
program with the new verifier contracts.
cargo update
cargo run --bin artifacts --release
- Open a PR to commit the changes to
main
.