pub struct RootEntry {
pub did: String,
pub public_key_hex: String,
pub kel_tip_said: Option<String>,
pub note: Option<String>,
}Expand description
A single trusted identity root entry.
Fields§
§did: StringThe DID of the trusted identity (e.g., “did:keri:EXq5…”)
public_key_hex: StringThe public key in hex format (64 chars, 32 bytes for Ed25519).
kel_tip_said: Option<String>Optional KEL tip SAID for rotation-aware matching.
note: Option<String>Optional human-readable note about this root.
Implementations§
Source§impl RootEntry
impl RootEntry
Sourcepub fn public_key_bytes(&self) -> Result<Vec<u8>, TrustError>
pub fn public_key_bytes(&self) -> Result<Vec<u8>, TrustError>
Decode the public key to raw bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RootEntry
impl<'de> Deserialize<'de> for RootEntry
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 RootEntry
impl RefUnwindSafe for RootEntry
impl Send for RootEntry
impl Sync for RootEntry
impl Unpin for RootEntry
impl UnsafeUnpin for RootEntry
impl UnwindSafe for RootEntry
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