Skip to content

Proof of concept groth16 verifier #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}
cancel-in-progress: true

env:
MINIMUM_RUST_VERSION: 1.80.0

jobs:

complete:
Expand Down Expand Up @@ -81,8 +78,11 @@ jobs:
- name: Use the minimum supported Rust version
if: matrix.rust == 'msrv'
run: |
rustup override set $MINIMUM_RUST_VERSION
rustup component add clippy --toolchain $MINIMUM_RUST_VERSION
if [ -f "Cargo.toml" ]; then
msrv="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | map(.rust_version) | map(values) | min')"
rustup override set $msrv
rustup component add clippy --toolchain $msrv
fi
- name: Error on warnings and clippy checks
# Only error on warnings and checks for the msrv, because new versions of
# Rust will frequently add new warnings and checks.
Expand All @@ -99,7 +99,7 @@ jobs:
deno-version: v2.x

# Setup Stellar CLI
- uses: stellar/stellar-cli@v22.5.0
- uses: stellar/stellar-cli@v22.8.0

# Build and Test
- run: make test
Expand Down
1 change: 1 addition & 0 deletions account/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-account-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-alloc-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions atomic_multiswap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-atomic-multiswap-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions atomic_swap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-atomic-swap-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-auth-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions bls_signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-bls-signature"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"
description = """
WARNING: DO NOT USE THIS LIBRARY IN PRODUCTION OR FOR SECURE APPLICATIONS!

Expand Down
2 changes: 0 additions & 2 deletions bls_signature/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ fn create_client(e: &Env) -> IncrementContractClient {
#[test]
fn test() {
let env = Env::default();
env.cost_estimate().budget().reset_unlimited();
let pk = aggregate_pk_bytes(&env);
env.mock_all_auths();

Expand All @@ -112,7 +111,6 @@ fn test() {
let payload = BytesN::random(&env);
let sig_val = sign_and_aggregate(&env, &payload.clone().into()).to_val();

env.cost_estimate().budget().reset_default();
env.try_invoke_contract_check_auth::<AccError>(&client.address, &payload, sig_val, &vec![&env])
.unwrap();
env.cost_estimate().budget().print();
Expand Down
1 change: 1 addition & 0 deletions cross_contract/contract_a/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-cross-contract-a-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions cross_contract/contract_b/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-cross-contract-b-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions custom_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-custom-types-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions deep_contract_auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-deployer-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions deployer/contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-deployer-test-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions deployer/deployer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-deployer-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions errors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-errors-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions eth_abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-eth-abi"
version = "0.1.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions events/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-events-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib"]
Expand Down
1 change: 1 addition & 0 deletions fuzzing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "soroban-fuzzing-contract"
version = "0.0.0"
edition = "2021"
publish = false
rust-version = "1.80.0"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
Loading