Struct snarkvm_synthesizer::prelude::InclusionAssignment
source · pub struct InclusionAssignment<N>where
N: Network,{ /* private fields */ }
Implementations§
source§impl<N> InclusionAssignment<N>where
N: Network,
impl<N> InclusionAssignment<N>where N: Network,
sourcepub fn new(
state_path: StatePath<N>,
commitment: Field<N>,
gamma: Group<N>,
serial_number: Field<N>,
local_state_root: <N as Network>::TransactionID,
is_global: bool
) -> InclusionAssignment<N>
pub fn new( state_path: StatePath<N>, commitment: Field<N>, gamma: Group<N>, serial_number: Field<N>, local_state_root: <N as Network>::TransactionID, is_global: bool ) -> InclusionAssignment<N>
Initializes a new inclusion assignment.
sourcepub fn to_circuit_assignment<A>(
&self
) -> Result<Assignment<<N as Environment>::Field>, Error>where
A: Aleo<Network = N>,
pub fn to_circuit_assignment<A>( &self ) -> Result<Assignment<<N as Environment>::Field>, Error>where A: Aleo<Network = N>,
Trait Implementations§
Auto Trait Implementations§
impl<N> RefUnwindSafe for InclusionAssignment<N>where N: RefUnwindSafe, <N as Network>::BlockHash: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Network>::StateRoot: RefUnwindSafe, <N as Network>::TransactionID: RefUnwindSafe,
impl<N> Send for InclusionAssignment<N>
impl<N> Sync for InclusionAssignment<N>
impl<N> Unpin for InclusionAssignment<N>where N: Unpin, <N as Network>::BlockHash: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Network>::StateRoot: Unpin, <N as Network>::TransactionID: Unpin,
impl<N> UnwindSafe for InclusionAssignment<N>where N: UnwindSafe, <N as Network>::BlockHash: UnwindSafe, <N as Environment>::Field: UnwindSafe, <N as Environment>::Projective: UnwindSafe, <N as Network>::StateRoot: UnwindSafe, <N as Network>::TransactionID: UnwindSafe,
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