pub struct WalletPolicyId(/* private fields */);Expand description
128-bit canonical wallet-policy identifier (spec v0.13 §5.3).
Hashes the canonical-expanded BIP 388 wallet policy — template tree
plus per-@N origin / use-site / fp / xpub records — so that two
engravings of the same logical wallet produce identical IDs whether
they elide canonical paths or write them out explicitly. Stable
across origin- and use-site-elision; presence-significant on
fingerprint and xpub axes.
Implementations§
Trait Implementations§
Source§impl Clone for WalletPolicyId
impl Clone for WalletPolicyId
Source§fn clone(&self) -> WalletPolicyId
fn clone(&self) -> WalletPolicyId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalletPolicyId
impl Debug for WalletPolicyId
Source§impl Hash for WalletPolicyId
impl Hash for WalletPolicyId
Source§impl PartialEq for WalletPolicyId
impl PartialEq for WalletPolicyId
Source§fn eq(&self, other: &WalletPolicyId) -> bool
fn eq(&self, other: &WalletPolicyId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WalletPolicyId
impl Eq for WalletPolicyId
impl StructuralPartialEq for WalletPolicyId
Auto Trait Implementations§
impl Freeze for WalletPolicyId
impl RefUnwindSafe for WalletPolicyId
impl Send for WalletPolicyId
impl Sync for WalletPolicyId
impl Unpin for WalletPolicyId
impl UnsafeUnpin for WalletPolicyId
impl UnwindSafe for WalletPolicyId
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