pub struct Key {
pub hex: Option<&'static str>,
pub wif: Option<Wif>,
pub seed: Option<Seed>,
pub mini: Option<&'static str>,
pub bits: Option<u16>,
pub shares: Option<Shares>,
}Expand description
Private key in various representations.
Fields§
§hex: Option<&'static str>Raw hex (64 characters, 32 bytes)
wif: Option<Wif>Wallet Import Format (standard or BIP38 encrypted)
seed: Option<Seed>BIP39 seed phrase with optional derivation path
mini: Option<&'static str>Mini private key format (starts with ‘S’)
bits: Option<u16>Bit range constraint: key is in [2^(bits-1), 2^bits - 1]
Secret sharing scheme (e.g., Shamir, SLIP-39)
Implementations§
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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