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 salt "signing", matching Rust's derive_signing_private_key().
Derive an X25519 agreement private key.
Uses HKDF with salt "agreement", matching Rust's derive_agreement_private_key().
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
Derive a Schnorr signing private key.
Uses ECPrivateKey.deriveFromKeyMaterial() matching Rust's PrivateKeyBase::schnorr_signing_private_key().
Derive a PrivateKeys container with Schnorr signing and X25519 agreement keys.
Matches Rust's PrivateKeyBase::schnorr_private_keys().
Derive a PublicKeys container from Schnorr derived keys.
Derive an ECDSA signing private key.
Uses ECPrivateKey.deriveFromKeyMaterial() matching Rust's PrivateKeyBase::ecdsa_signing_private_key().
Derive a PrivateKeys container with ECDSA signing and X25519 agreement keys.
Matches Rust's PrivateKeyBase::ecdsa_private_keys().
Derive a PublicKeys container from ECDSA derived 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.