StaticnewCreate a new random PrivateKeyBase.
StaticnewCreate a new random PrivateKeyBase using the provided RNG.
StaticfromCreate a PrivateKeyBase from raw bytes.
32 bytes of key material
Returns the raw key material.
Returns a copy of the raw key material.
Derive an Ed25519 signing private key.
Uses HKDF with info string "signing-ed25519".
Derive an X25519 agreement private key.
Uses HKDF with info string "agreement-x25519".
Get EncapsulationPrivateKey for decryption.
Returns the derived X25519 private key wrapped as EncapsulationPrivateKey.
Derive a PrivateKeys container with Ed25519 signing and X25519 agreement keys.
PrivateKeys containing the derived signing and encapsulation keys
Derive a PublicKeys container from the derived keys.
PublicKeys containing the derived public keys
Get string representation (truncated for security).
Returns the CBOR tags associated with PrivateKeyBase.
Returns the untagged CBOR encoding.
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
Creates a PrivateKeyBase by decoding it from untagged CBOR.
Creates a PrivateKeyBase by decoding it from tagged CBOR.
StaticfromStaticfromStatic method to decode from tagged CBOR binary data.
StaticfromStatic method to decode from untagged CBOR binary data.
Returns the UR representation.
Returns the UR string representation.
StaticfromStaticfrom
PrivateKeyBase - Root cryptographic material for deterministic key derivation.
This is the foundation from which signing keys and agreement keys can be deterministically derived using HKDF.