pub struct SecretEntry {
pub key_id: String,
pub key_type: KeyType,
pub private_key_multibase: String,
}Expand description
A single secret entry within a DidSecretsBundle.
Fields§
§key_id: StringVerification method ID (e.g. did:webvh:...#key-0).
key_type: KeyTypeKey type — determines how to reconstruct the secret.
private_key_multibase: StringMultibase-encoded (Base58BTC) private key with multicodec prefix.
The multicodec prefix identifies the key type:
- Ed25519 private:
0x1300— 32-byte Ed25519 seed - X25519 private:
0x1302— 32-byte X25519 scalar (fromget_key_secret) or Ed25519 seed for conversion (from provisioning) - P256 private:
0x1306— 32-byte P-256 scalar
Compatible with Secret::from_multibase() for direct use in DIDComm.
Trait Implementations§
Source§impl Clone for SecretEntry
impl Clone for SecretEntry
Source§fn clone(&self) -> SecretEntry
fn clone(&self) -> SecretEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretEntry
impl Debug for SecretEntry
Source§impl<'de> Deserialize<'de> for SecretEntry
impl<'de> Deserialize<'de> for SecretEntry
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 SecretEntry
impl RefUnwindSafe for SecretEntry
impl Send for SecretEntry
impl Sync for SecretEntry
impl Unpin for SecretEntry
impl UnsafeUnpin for SecretEntry
impl UnwindSafe for SecretEntry
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