pub enum ProofInputBuilder {
Mixer(Box<MixerProofInput>),
VAnchor(Box<VAnchorProofInput>),
}
Variants§
Mixer(Box<MixerProofInput>)
VAnchor(Box<VAnchorProofInput>)
Implementations§
Source§impl ProofInputBuilder
impl ProofInputBuilder
pub fn set_input_utxos( &mut self, utxo_list: Vec<JsUtxo>, ) -> Result<(), OperationError>
Sourcepub fn set_output_utxos(
&mut self,
output_utxos: [JsUtxo; 2],
) -> Result<(), OperationError>
pub fn set_output_utxos( &mut self, output_utxos: [JsUtxo; 2], ) -> Result<(), OperationError>
Directly set the output Utxos in the proving payload
pub fn roots(&mut self, roots: Vec<Vec<u8>>) -> Result<(), OperationError>
pub fn public_amount( &mut self, public_amount: i128, ) -> Result<(), OperationError>
pub fn secrets(&mut self, leaf: Leaf) -> Result<(), OperationError>
pub fn leaves_map( &mut self, leaves: BTreeMap<u64, Vec<Vec<u8>>>, ) -> Result<(), OperationError>
pub fn ext_data_hash( &mut self, ext_data_hash_bytes: Vec<u8>, ) -> Result<(), OperationError>
pub fn leaf_indices( &mut self, leaf_indices: Vec<u64>, ) -> Result<(), OperationError>
pub fn recipient(&mut self, recipient: Vec<u8>) -> Result<(), OperationError>
pub fn relayer(&mut self, relayer: Vec<u8>) -> Result<(), OperationError>
pub fn leaves_list( &mut self, leaves: Vec<Vec<u8>>, ) -> Result<(), OperationError>
pub fn leaf_index(&mut self, leaf_index: u64) -> Result<(), OperationError>
pub fn fee(&mut self, fee: u128) -> Result<(), OperationError>
pub fn refund(&mut self, refund: u128) -> Result<(), OperationError>
pub fn pk(&mut self, pk: Vec<u8>) -> Result<(), OperationError>
pub fn exponentiation( &mut self, exponentiation: i8, ) -> Result<(), OperationError>
pub fn width(&mut self, width: usize) -> Result<(), OperationError>
pub fn curve(&mut self, curve: Curve) -> Result<(), OperationError>
pub fn backend(&mut self, backend: Backend) -> Result<(), OperationError>
pub fn chain_id(&mut self, chain_id: u128) -> Result<(), OperationError>
Trait Implementations§
Source§impl Clone for ProofInputBuilder
impl Clone for ProofInputBuilder
Source§fn clone(&self) -> ProofInputBuilder
fn clone(&self) -> ProofInputBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProofInputBuilder
impl RefUnwindSafe for ProofInputBuilder
impl Send for ProofInputBuilder
impl Sync for ProofInputBuilder
impl Unpin for ProofInputBuilder
impl UnwindSafe for ProofInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more