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§
Source§impl<N: Clone + Network> Clone for InclusionAssignment<N>where
N::TransactionID: Clone,
impl<N: Clone + Network> Clone for InclusionAssignment<N>where
N::TransactionID: Clone,
Source§fn clone(&self) -> InclusionAssignment<N>
fn clone(&self) -> InclusionAssignment<N>
Returns a copy 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<N> Freeze for InclusionAssignment<N>where
<N as Network>::TransactionID: Freeze,
<N as Network>::StateRoot: Freeze,
<N as Network>::BlockHash: Freeze,
<N as Environment>::Field: Freeze,
<N as Environment>::Projective: Freeze,
impl<N> RefUnwindSafe for InclusionAssignment<N>where
<N as Network>::TransactionID: RefUnwindSafe,
<N as Network>::StateRoot: RefUnwindSafe,
<N as Network>::BlockHash: RefUnwindSafe,
<N as Environment>::Field: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for InclusionAssignment<N>
impl<N> Sync for InclusionAssignment<N>
impl<N> Unpin for InclusionAssignment<N>where
<N as Network>::TransactionID: Unpin,
<N as Network>::StateRoot: Unpin,
<N as Network>::BlockHash: Unpin,
<N as Environment>::Field: Unpin,
<N as Environment>::Projective: Unpin,
N: Unpin,
impl<N> UnwindSafe for InclusionAssignment<N>where
<N as Network>::TransactionID: UnwindSafe,
<N as Network>::StateRoot: UnwindSafe,
<N as Network>::BlockHash: UnwindSafe,
<N as Environment>::Field: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
N: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more