Skip to content

feat: rust sdk#459

Merged
MauroToscano merged 148 commits intomainfrom
442-feat-rust-sdk
Jul 1, 2024
Merged

feat: rust sdk#459
MauroToscano merged 148 commits intomainfrom
442-feat-rust-sdk

Conversation

@uri-99
Copy link
Copy Markdown
Contributor

@uri-99 uri-99 commented Jun 21, 2024

Description

  • This PR creates an SDK for Aligned with 3 methods: submit, verify_proof_onchain and get_verification_key_commitment.

Test the SDK

  • Start anvil with block time, the aggregator, the operator and the batcher.
  • Inside the aligned-sdk directory, run cargo test.
  • Whenever the test freezes, run make batcher_send_infinite_groth16 and keep sending proofs in the background.

Test the client that now uses the SDK

  • Run make install_aligned_compiling.
  • Run which aligned and make sure you are using the .cargo/bin/aligned version.
  • Make sure the client works as expected, run Submit, VerifyProofOnChain and GetVerificationKeyCommitment.

Important

  • I made an minimum example using the SDK, I will add it in another PR because I need the SDK merged in main.
  • The client won't work with the batcher deployed on Testnet yet. We need to re-deploy the batcher for it to send the current version to the client.

Comment thread batcher/aligned-sdk/src/errors.rs Outdated
Copy link
Copy Markdown
Contributor

@NicolasRampoldi NicolasRampoldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait for #519 to merge

# Conflicts:
#	batcher/Cargo.lock
#	batcher/aligned-batcher-lib/Cargo.toml
#	batcher/aligned-batcher/src/lib.rs
#	batcher/aligned-sdk/src/eth.rs
#	batcher/aligned/Cargo.toml
#	batcher/aligned/generate_proof_and_send.sh
#	batcher/aligned/src/main.rs
# Conflicts:
#	batcher/aligned-batcher/src/lib.rs
#	batcher/aligned/src/main.rs
@MauroToscano MauroToscano merged commit dbbadfa into main Jul 1, 2024
@MauroToscano MauroToscano deleted the 442-feat-rust-sdk branch July 1, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: rust sdk

6 participants