[−][src]Struct grin_keychain::extkey_bip32::ExtendedPrivKey
Extended private key
Fields
network: [u8; 4]
The network this key is to be used on
depth: u8
How many derivations this key is from the master (which is 0)
parent_fingerprint: Fingerprint
Fingerprint of the parent key (0 for master)
child_number: ChildNumber
Child number of the key used to derive from parent (0 for master)
secret_key: SecretKey
Secret key
chain_code: ChainCode
Chain code
Methods
impl ExtendedPrivKey
[src]
pub fn new_master<H>(
secp: &Secp256k1,
hasher: &mut H,
seed: &[u8]
) -> Result<ExtendedPrivKey, Error> where
H: BIP32Hasher,
[src]
secp: &Secp256k1,
hasher: &mut H,
seed: &[u8]
) -> Result<ExtendedPrivKey, Error> where
H: BIP32Hasher,
Construct a new master key from a seed value
pub fn from_mnemonic(
secp: &Secp256k1,
mnemonic: &str,
passphrase: &str,
is_floo: bool
) -> Result<ExtendedPrivKey, Error>
[src]
secp: &Secp256k1,
mnemonic: &str,
passphrase: &str,
is_floo: bool
) -> Result<ExtendedPrivKey, Error>
Construct a new master key from a mnemonic and a passphrase
pub fn derive_priv<H>(
&self,
secp: &Secp256k1,
hasher: &mut H,
cnums: &[ChildNumber]
) -> Result<ExtendedPrivKey, Error> where
H: BIP32Hasher,
[src]
&self,
secp: &Secp256k1,
hasher: &mut H,
cnums: &[ChildNumber]
) -> Result<ExtendedPrivKey, Error> where
H: BIP32Hasher,
Attempts to derive an extended private key from a path.
pub fn ckd_priv<H>(
&self,
secp: &Secp256k1,
hasher: &mut H,
i: ChildNumber
) -> Result<ExtendedPrivKey, Error> where
H: BIP32Hasher,
[src]
&self,
secp: &Secp256k1,
hasher: &mut H,
i: ChildNumber
) -> Result<ExtendedPrivKey, Error> where
H: BIP32Hasher,
Private->Private child key derivation
pub fn identifier<H>(&self, hasher: &mut H) -> [u8; 20] where
H: BIP32Hasher,
[src]
H: BIP32Hasher,
Returns the HASH160 of the chaincode
pub fn fingerprint<H>(&self, hasher: &mut H) -> Fingerprint where
H: BIP32Hasher,
[src]
H: BIP32Hasher,
Returns the first four bytes of the identifier
Trait Implementations
impl Clone for ExtendedPrivKey
[src]
fn clone(&self) -> ExtendedPrivKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExtendedPrivKey
[src]
impl Display for ExtendedPrivKey
[src]
impl Eq for ExtendedPrivKey
[src]
impl FromStr for ExtendedPrivKey
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(inp: &str) -> Result<ExtendedPrivKey, Error>
[src]
impl PartialEq<ExtendedPrivKey> for ExtendedPrivKey
[src]
fn eq(&self, other: &ExtendedPrivKey) -> bool
[src]
fn ne(&self, other: &ExtendedPrivKey) -> bool
[src]
impl StructuralEq for ExtendedPrivKey
[src]
impl StructuralPartialEq for ExtendedPrivKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtendedPrivKey
impl Send for ExtendedPrivKey
impl Sync for ExtendedPrivKey
impl Unpin for ExtendedPrivKey
impl UnwindSafe for ExtendedPrivKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Send + Sync> where
T: Send + Sync,
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,