pub struct GeneratedKeypair {
pub pkcs8: Pkcs8Der,
pub public_key: Vec<u8>,
pub cesr_encoded: String,
}Expand description
Output of curve-agnostic key generation.
Fields§
§pkcs8: Pkcs8DerPKCS8 DER encoded keypair (zeroed on drop).
public_key: Vec<u8>Raw public key bytes (32 for Ed25519, 33 for P-256 compressed).
cesr_encoded: StringCESR-encoded public key string (e.g., “D…” or “1AAJ…”).
Implementations§
Source§impl GeneratedKeypair
impl GeneratedKeypair
Sourcepub fn verkey(&self) -> KeriPublicKey
pub fn verkey(&self) -> KeriPublicKey
The public key as a typed auths_keri::KeriPublicKey, curve carried in
the type. Bridges the raw bytes + CESR tag into the typed key that KERI
functions (e.g. compute_next_commitment) consume, so the curve is never
re-guessed from byte length.
Auto Trait Implementations§
impl Freeze for GeneratedKeypair
impl RefUnwindSafe for GeneratedKeypair
impl Send for GeneratedKeypair
impl Sync for GeneratedKeypair
impl Unpin for GeneratedKeypair
impl UnsafeUnpin for GeneratedKeypair
impl UnwindSafe for GeneratedKeypair
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