pub struct InclusionAssignment<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> InclusionAssignment<N>
impl<N: Network> InclusionAssignment<N>
sourcepub fn new(
state_path: StatePath<N>,
commitment: Field<N>,
gamma: Group<N>,
serial_number: Field<N>,
local_state_root: N::TransactionID,
is_global: bool
) -> Self
pub fn new( state_path: StatePath<N>, commitment: Field<N>, gamma: Group<N>, serial_number: Field<N>, local_state_root: N::TransactionID, is_global: bool ) -> Self
Initializes a new inclusion assignment.
sourcepub fn to_circuit_assignment<A: Aleo<Network = N>>(
&self
) -> Result<Assignment<N::Field>>
pub fn to_circuit_assignment<A: Aleo<Network = N>>( &self ) -> Result<Assignment<N::Field>>
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