pub struct DidInfo<M> {
pub launcher_id: Bytes32,
pub recovery_list_hash: Option<Bytes32>,
pub num_verifications_required: u64,
pub metadata: M,
pub p2_puzzle_hash: Bytes32,
}Fields§
§launcher_id: Bytes32§recovery_list_hash: Option<Bytes32>§num_verifications_required: u64§metadata: M§p2_puzzle_hash: Bytes32Implementations§
source§impl<M> DidInfo<M>
impl<M> DidInfo<M>
pub fn new( launcher_id: Bytes32, recovery_list_hash: Option<Bytes32>, num_verifications_required: u64, metadata: M, p2_puzzle_hash: Bytes32, ) -> Self
sourcepub fn parse(
allocator: &Allocator,
puzzle: Puzzle,
) -> Result<Option<(Self, Puzzle)>, DriverError>
pub fn parse( allocator: &Allocator, puzzle: Puzzle, ) -> Result<Option<(Self, Puzzle)>, DriverError>
Parses the DID info and p2 puzzle that corresponds to the p2 puzzle hash.
pub fn from_layers<I>(layers: StandardDidLayers<M, I>) -> Selfwhere
I: ToTreeHash,
pub fn into_layers<I>(self, p2_puzzle: I) -> StandardDidLayers<M, I>
pub fn with_metadata<N>(self, metadata: N) -> DidInfo<N>
pub fn inner_puzzle_hash(&self) -> TreeHashwhere
M: ToTreeHash,
Trait Implementations§
impl<M: Copy> Copy for DidInfo<M>
impl<M: Eq> Eq for DidInfo<M>
impl<M> StructuralPartialEq for DidInfo<M>
Auto Trait Implementations§
impl<M> Freeze for DidInfo<M>where
M: Freeze,
impl<M> RefUnwindSafe for DidInfo<M>where
M: RefUnwindSafe,
impl<M> Send for DidInfo<M>where
M: Send,
impl<M> Sync for DidInfo<M>where
M: Sync,
impl<M> Unpin for DidInfo<M>where
M: Unpin,
impl<M> UnwindSafe for DidInfo<M>where
M: 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)