pub struct HdPath { /* private fields */ }Expand description
Chain code and a path of non-hardened child indices.
Implementations§
Source§impl HdPath
impl HdPath
Sourcepub fn new(chain_code: [u8; 32], path: Vec<u32>) -> Result<Self>
pub fn new(chain_code: [u8; 32], path: Vec<u32>) -> Result<Self>
Hardened indices cannot be derived without the private key and are rejected.
pub fn chain_code(&self) -> &[u8; 32]
pub fn path(&self) -> &[u32]
Sourcepub fn delta(&self, x_pub: &ProjectivePoint) -> Result<Scalar>
pub fn delta(&self, x_pub: &ProjectivePoint) -> Result<Scalar>
δ such that the child key is X + δ·G.
Trait Implementations§
impl Eq for HdPath
impl StructuralPartialEq for HdPath
Auto Trait Implementations§
impl Freeze for HdPath
impl RefUnwindSafe for HdPath
impl Send for HdPath
impl Sync for HdPath
impl Unpin for HdPath
impl UnsafeUnpin for HdPath
impl UnwindSafe for HdPath
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