You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the name convention: [prover name]_[ec]_[hasher]_[tree height]_[bridge size]_[num inputs]_[num outputs]
With interface:
traitVAnchorProver<F:PrimeField,H:HasherGadget,constHEIGHT:usize,constBRIDGE_SIZE:usize,constINS:usize,constOUTS:usize,>{// For creating fresh utxo, or create a new one by passing values for secret key and blindingpubfncreate_utxo<R:RngCore>(chain_id:u128,amount:u128,index:Option<u64>,secret_key:Option<Vec<u8>>,blinding:Option<Vec<u8>>,rng:&mutR,) -> Result<Leaf,Error>;// For making proofspubfncreate_proof<R:RngCore + CryptoRng>(curve:Curve,// External datapublic_amount:Vec<u8>,ext_data_hash:Vec<u8>,in_root_set:[Vec<u8>;M],in_indices:[u64;INS],in_leaves:[Vec<Vec<u8>>;INS],// Input transactionsin_utxos:[Utxo<F>;INS],// Output transactionsout_utxos:[Utxo<F>;OUTS],rng:&mutR,) -> Result<VAnchorProof,Error>;}
NOTE: This interface can be implemented for both R1CS and PLONK systems
Update R1CS circuit API
Update PLONK circuit API
The text was updated successfully, but these errors were encountered:
To make the API more configurable and more stable, I propose the following struct:
Which will be defined as:
With the name convention:
[prover name]_[ec]_[hasher]_[tree height]_[bridge size]_[num inputs]_[num outputs]
With interface:
NOTE: This interface can be implemented for both R1CS and PLONK systems
The text was updated successfully, but these errors were encountered: