Struct grin_keychain::keychain::ExtKeychain

source ·
pub struct ExtKeychain {
    pub master: ExtendedPrivKey,
    /* private fields */
}

Fields§

§master: ExtendedPrivKey

Implementations§

Trait Implementations§

source§

impl Clone for ExtKeychain

source§

fn clone(&self) -> ExtKeychain

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExtKeychain

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Keychain for ExtKeychain

source§

fn from_random_seed(is_test: bool) -> Result<ExtKeychain, Error>

For testing - probably not a good idea to use outside of tests.

source§

fn from_seed(seed: &[u8], is_test: bool) -> Result<ExtKeychain, Error>

Generates a keychain from a raw binary seed (which has already been decrypted if applicable).
source§

fn from_mnemonic( word_list: &str, extension_word: &str, is_test: bool ) -> Result<Self, Error>

Generates a keychain from a list of space-separated mnemonic words
source§

fn mask_master_key(&mut self, mask: &SecretKey) -> Result<(), Error>

XOR masks the keychain’s master key against another key
source§

fn root_key_id() -> Identifier

Root identifier for that keychain
source§

fn derive_key_id(depth: u8, d1: u32, d2: u32, d3: u32, d4: u32) -> Identifier

Derives a key id from the depth of the keychain and the values at each depth level. See KeychainPath for more information.
source§

fn public_root_key(&self) -> PublicKey

The public root key
source§

fn derive_key( &self, amount: u64, id: &Identifier, switch: SwitchCommitmentType ) -> Result<SecretKey, Error>

source§

fn commit( &self, amount: u64, id: &Identifier, switch: SwitchCommitmentType ) -> Result<Commitment, Error>

source§

fn blind_sum(&self, blind_sum: &BlindSum) -> Result<BlindingFactor, Error>

source§

fn sign( &self, msg: &Message, amount: u64, id: &Identifier, switch: SwitchCommitmentType ) -> Result<Signature, Error>

source§

fn sign_with_blinding( &self, msg: &Message, blinding: &BlindingFactor ) -> Result<Signature, Error>

source§

fn secp(&self) -> &Secp256k1

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneAny for T
where T: Any + Clone,

source§

fn clone_any(&self) -> Box<dyn CloneAny>

source§

fn clone_any_send(&self) -> Box<dyn CloneAny + Send>
where T: Send,

source§

fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync>
where T: Sync,

source§

fn clone_any_send_sync(&self) -> Box<dyn CloneAny + Sync + Send>
where T: Send + Sync,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DebugAny for T
where T: Any + Debug,

source§

impl<T> UnsafeAny for T
where T: Any,