arnaucube
arnaucube/sonobe-light-btcPublic Self-hosted repository
chore: update proving with decider-eth
dmpierre pdaixmoreux@gmail.com
Mon, 01 Apr 2024 14:27:17 +0200
commit

a3ce9d780530d20a2644e2de734761ae8b9943cb

parent

850a9b7b0573095da26834bdb09cbf716a727854

3 files changed, 11 insertions(+), 4 deletions(-)

jump to
M Cargo.lock → Cargo.lock

@@ -1119,12 +1119,14 @@

[[package]] name = "folding-schemes" version = "0.1.0" -source = "git+https://github.com/privacy-scaling-explorations/folding-schemes.git?branch=feature/decider-link-groth16-kzg#86acbf212d898b7db5dbf05c4db367122d2ae88b" +source = "git+https://github.com/privacy-scaling-explorations/folding-schemes.git?branch=feature/solidity-decider-verifier#426c6ee6dea6e76fa47811b25ce5184e34202ec1" dependencies = [ + "ark-bn254", "ark-circom", "ark-crypto-primitives", "ark-ec", "ark-ff", + "ark-groth16", "ark-poly", "ark-poly-commit", "ark-r1cs-std",
M Cargo.toml → Cargo.toml

@@ -7,7 +7,7 @@ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies] ark-r1cs-std = { git = "https://github.com/arnaucube/ark-r1cs-std-cherry-picked/" } -folding-schemes = { git = "https://github.com/privacy-scaling-explorations/folding-schemes.git", package = "folding-schemes", branch="feature/decider-link-groth16-kzg" } +folding-schemes = { git = "https://github.com/privacy-scaling-explorations/folding-schemes.git", package = "folding-schemes", branch="feature/solidity-decider-verifier" } ark-light-bitcoin-client = { git = "https://github.com/dmpierre/ark-light-bitcoin-client.git" } ark-ff = "0.4.0" ark-relations = "0.4.0"
M src/main.rs → src/main.rs

@@ -173,9 +173,14 @@ println!("Proof generated in: {:.2?}", elapsed);

// decider proof verification println!("Verifying proof..."); - let decider_vp = (poseidon_config, g16_vk, kzg_vk); let verified = DECIDER::verify( - decider_vp, nova.i, nova.z_0, nova.z_i, &nova.U_i, &nova.u_i, proof, + (g16_vk.clone(), kzg_vk.clone()), + nova.i, + nova.z_0, + nova.z_i, + &nova.U_i, + &nova.u_i, + &proof, ) .unwrap(); assert!(verified);