Struct chain_crypto::SecretKey
source · pub struct SecretKey<A: AsymmetricKey>(pub(crate) A::Secret);
Tuple Fields§
§0: A::Secret
Implementations§
source§impl<A: KeyEvolvingAlgorithm> SecretKey<A>
impl<A: KeyEvolvingAlgorithm> SecretKey<A>
sourcepub fn evolve(key: &mut Self) -> EvolvingStatus
pub fn evolve(key: &mut Self) -> EvolvingStatus
Evolve the secret key to the next period
sourcepub fn get_period(key: &Self) -> u32
pub fn get_period(key: &Self) -> u32
Get the period associated with the current instance of the key
source§impl<A: AsymmetricKey> SecretKey<A>
impl<A: AsymmetricKey> SecretKey<A>
Trait Implementations§
source§impl<A: SecretKeySizeStatic> Bech32 for SecretKey<A>
impl<A: SecretKeySizeStatic> Bech32 for SecretKey<A>
source§const BECH32_HRP: &'static str = A::SECRET_BECH32_HRP
const BECH32_HRP: &'static str = A::SECRET_BECH32_HRP
The human-readable prefix that is used to represent the
the object in the Bech32 format. On decoding, the HRP of the input
string is checked against this value.
source§fn try_from_bech32_str(bech32_str: &str) -> Result<Self, Error>
fn try_from_bech32_str(bech32_str: &str) -> Result<Self, Error>
Decodes the object from its Bech32 string representation.
source§fn to_bech32_str(&self) -> String
fn to_bech32_str(&self) -> String
Produces a Bech32 string format representation of the object.
source§impl<A: AsymmetricKey> Clone for SecretKey<A>
impl<A: AsymmetricKey> Clone for SecretKey<A>
source§impl<A> Debug for SecretKey<A>where
A: AsymmetricKey,
impl<A> Debug for SecretKey<A>where A: AsymmetricKey,
Auto Trait Implementations§
impl<A> RefUnwindSafe for SecretKey<A>where <A as AsymmetricKey>::Secret: RefUnwindSafe,
impl<A> Send for SecretKey<A>where <A as AsymmetricKey>::Secret: Send,
impl<A> Sync for SecretKey<A>where <A as AsymmetricKey>::Secret: Sync,
impl<A> Unpin for SecretKey<A>where <A as AsymmetricKey>::Secret: Unpin,
impl<A> UnwindSafe for SecretKey<A>where <A as AsymmetricKey>::Secret: UnwindSafe,
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