pub struct DNAKeypair {
pub public_key: [u8; 32],
pub secret_key: [u8; 32],
pub key_generation: u64,
pub derivation_path: Vec<u32>,
}
Expand description
Cryptographic keypair embedded in DNA
Fieldsยง
ยงpublic_key: [u8; 32]
Ed25519 public key (32 bytes)
secret_key: [u8; 32]
Ed25519 secret key (32 bytes) - never serialized in production
key_generation: u64
Generation when keys were created/evolved
derivation_path: Vec<u32>
Key derivation path for hierarchical keys
Trait Implementationsยง
Sourceยงimpl Clone for DNAKeypair
impl Clone for DNAKeypair
Sourceยงfn clone(&self) -> DNAKeypair
fn clone(&self) -> DNAKeypair
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for DNAKeypair
impl Debug for DNAKeypair
Sourceยงimpl<'de> Deserialize<'de> for DNAKeypair
impl<'de> Deserialize<'de> for DNAKeypair
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for DNAKeypair
impl RefUnwindSafe for DNAKeypair
impl Send for DNAKeypair
impl Sync for DNAKeypair
impl Unpin for DNAKeypair
impl UnwindSafe for DNAKeypair
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