StaticwithCreate a new PrivateKeys container with the given keys.
StaticnewCreate a new PrivateKeys container with random Ed25519/X25519 keys.
StaticgenerateGenerate a new PrivateKeys container with random Ed25519/X25519 keys. This is an alias for new() for API compatibility.
Returns the signing private key.
Returns the encapsulation private key.
Note: Named to match Rust's API (which has a typo but we maintain compatibility)
Derive the corresponding public keys.
Sign a message with optional signing options using the signing private key.
Optionaloptions: SigningOptionsDecapsulate a shared secret from a ciphertext.
This implements the Decrypter interface, allowing PrivateKeys to be used in encryption contexts where a shared secret needs to be recovered.
Returns a unique reference to this PrivateKeys instance.
The reference is derived from the SHA-256 hash of the tagged CBOR representation, providing a unique, content-addressable identifier.
Get string representation.
Format matches Rust: PrivateKeys(<short_reference>)
Returns the CBOR tags associated with PrivateKeys.
Returns the untagged CBOR encoding.
Format: [
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
Creates a PrivateKeys by decoding it from untagged CBOR.
Creates a PrivateKeys 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
PrivateKeys - Container for a signing key and an encapsulation key.
This type provides a convenient way to manage a pair of private keys for both signing and encryption operations.