pub struct DidPuzzle {
pub p2_puzzle: Puzzle,
pub recovery_did_list_hash: Bytes32,
pub num_verifications_required: u64,
pub metadata: NodePtr,
}
Fields§
§p2_puzzle: Puzzle
§recovery_did_list_hash: Bytes32
§num_verifications_required: u64
§metadata: NodePtr
Implementations§
Source§impl DidPuzzle
impl DidPuzzle
pub fn parse( allocator: &Allocator, launcher_id: Bytes32, puzzle: &Puzzle, ) -> Result<Option<Self>, ParseError>
pub fn output( &self, allocator: &mut Allocator, solution: NodePtr, ) -> Result<Option<CreateCoin>, ParseError>
pub fn child_coin_info( &self, allocator: &mut Allocator, singleton: &SingletonPuzzle, parent_coin: Coin, child_coin: Coin, solution: NodePtr, ) -> Result<DidInfo<NodePtr>, ParseError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DidPuzzle
impl RefUnwindSafe for DidPuzzle
impl Send for DidPuzzle
impl Sync for DidPuzzle
impl Unpin for DidPuzzle
impl UnwindSafe for DidPuzzle
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