#[non_exhaustive]pub struct PublicKeyInfo {
pub verifying_key_hex: String,
pub revoked: bool,
pub algorithm: KeyAlgorithm,
}Expand description
A key’s public half plus its revocation state, read directly from the
stored record’s plaintext verifying_key_hex/revoked fields — no
private-key decryption involved. For callers (like the did:web document
builder in dpp-vc) that only ever need the public key, this avoids an
AES-GCM decrypt per key on every call.
algorithm travels with the key because a reader cannot otherwise know how
to represent it: the DID-document builder needs it to choose the JWK shape,
and guessing is how a key ends up published under the wrong kty.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.verifying_key_hex: String§revoked: bool§algorithm: KeyAlgorithmAuto Trait Implementations§
impl Freeze for PublicKeyInfo
impl RefUnwindSafe for PublicKeyInfo
impl Send for PublicKeyInfo
impl Sync for PublicKeyInfo
impl Unpin for PublicKeyInfo
impl UnsafeUnpin for PublicKeyInfo
impl UnwindSafe for PublicKeyInfo
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