pub struct Nonce(/* private fields */);Expand description
A 128-bit number used only once.
Needed when constructing Offer::metadata and deriving Offer::issuer_signing_pubkey from
ExpandedKey. Must not be reused for any other derivation without first hashing.
Implementations§
Source§impl Nonce
impl Nonce
Sourcepub fn from_entropy_source<ES: Deref>(entropy_source: ES) -> Selfwhere
ES::Target: EntropySource,
pub fn from_entropy_source<ES: Deref>(entropy_source: ES) -> Selfwhere
ES::Target: EntropySource,
Creates a Nonce from the given EntropySource.
Sourcepub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_slice(&self) -> &[u8] ⓘ
Returns a slice of the underlying bytes of size Nonce::LENGTH.
Trait Implementations§
Source§impl Writeable for Nonce
impl Writeable for Nonce
impl Copy for Nonce
impl Eq for Nonce
impl StructuralPartialEq for Nonce
Auto Trait Implementations§
impl Freeze for Nonce
impl RefUnwindSafe for Nonce
impl Send for Nonce
impl Sync for Nonce
impl Unpin for Nonce
impl UnwindSafe for Nonce
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