[−][src]Struct bitcoin::util::bip32::ExtendedPubKey
Extended public key
Fields
network: NetworkThe network this key is to be used on
depth: u8How many derivations this key is from the master (which is 0)
parent_fingerprint: FingerprintFingerprint of the parent key
child_number: ChildNumberChild number of the key used to derive from parent (0 for master)
public_key: PublicKeyPublic key
chain_code: ChainCodeChain code
Methods
impl ExtendedPubKey[src]
pub fn from_private<C: Signing>(
secp: &Secp256k1<C>,
sk: &ExtendedPrivKey
) -> ExtendedPubKey[src]
secp: &Secp256k1<C>,
sk: &ExtendedPrivKey
) -> ExtendedPubKey
Derives a public key from a private key
pub fn derive_pub<C: Verification>(
&self,
secp: &Secp256k1<C>,
cnums: &[ChildNumber]
) -> Result<ExtendedPubKey, Error>[src]
&self,
secp: &Secp256k1<C>,
cnums: &[ChildNumber]
) -> Result<ExtendedPubKey, Error>
Attempts to derive an extended public key from a path.
pub fn ckd_pub_tweak(
&self,
i: ChildNumber
) -> Result<(SecretKey, ChainCode), Error>[src]
&self,
i: ChildNumber
) -> Result<(SecretKey, ChainCode), Error>
Compute the scalar tweak added to this key to get a child key
pub fn ckd_pub<C: Verification>(
&self,
secp: &Secp256k1<C>,
i: ChildNumber
) -> Result<ExtendedPubKey, Error>[src]
&self,
secp: &Secp256k1<C>,
i: ChildNumber
) -> Result<ExtendedPubKey, Error>
Public->Public child key derivation
pub fn identifier(&self) -> [u8; 20][src]
Returns the HASH160 of the chaincode
pub fn fingerprint(&self) -> Fingerprint[src]
Returns the first four bytes of the identifier
Trait Implementations
impl Eq for ExtendedPubKey[src]
impl Clone for ExtendedPubKey[src]
fn clone(&self) -> ExtendedPubKey[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for ExtendedPubKey[src]
impl PartialEq<ExtendedPubKey> for ExtendedPubKey[src]
fn eq(&self, other: &ExtendedPubKey) -> bool[src]
fn ne(&self, other: &ExtendedPubKey) -> bool[src]
impl Debug for ExtendedPubKey[src]
impl Display for ExtendedPubKey[src]
impl FromStr for ExtendedPubKey[src]
Auto Trait Implementations
impl Send for ExtendedPubKey
impl Sync for ExtendedPubKey
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,