pub struct Node(_);
Expand description
A SLIP-21 derivation node.
Implementations
sourceimpl Node
impl Node
sourcepub fn new_master(seed: &[u8]) -> Node
pub fn new_master(seed: &[u8]) -> Node
Create a new master node from a BIP-39 or SLIP-39 seed.
The seed is expected to be 64 bytes long.
sourcepub fn derive_child(&self, label: &[u8]) -> Node
pub fn derive_child(&self, label: &[u8]) -> Node
Derive the child node of this node.
Trait Implementations
sourceimpl FromHex for Node
impl FromHex for Node
sourcefn from_byte_iter<I>(iter: I) -> Result<Self, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<Self, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produces an object from a byte iterator.
sourceimpl Ord for Node
impl Ord for Node
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Node> for Node
impl PartialOrd<Node> for Node
sourcefn partial_cmp(&self, other: &Node) -> Option<Ordering>
fn partial_cmp(&self, other: &Node) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Node
impl Eq for Node
Auto Trait Implementations
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more