Struct ed25519_bip32::XPub
source · [−]pub struct XPub(_);
Expand description
Extended Public Key (Point + ChainCode)
Implementations
create a XPub
by taking ownership of the given array
create a XPub
by its components (a 32 bytes public key, and a 32 bytes chain code)
create a XPub
from the given slice. This slice must be of size XPUB_SIZE
otherwise it will return Option::None
.
pub fn derive(
&self,
scheme: DerivationScheme,
index: DerivationIndex
) -> Result<Self, DerivationError>
pub fn public_key_slice(&self) -> &[u8]ⓘ
pub fn chain_code_slice(&self) -> &[u8]ⓘ
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for XPub
impl UnwindSafe for XPub
Blanket Implementations
Mutably borrows from an owned value. Read more