Number of keys in the keyring (including archived).
StaticdeserializeDeserialize a keyring from a JSON string produced by serialize().
StaticfromDecrypt and restore a keyring from an encrypted blob.
256-bit key (hex or bytes).
Base64-encoded encrypted keyring.
Generate a new key pair and add it to the keyring.
Delete a key from the keyring.
List all keys matching the optional filters.
Optionalfilters: {Rotate a key: archive the current one and generate a new key with the same algorithm and metadata.
The new key entry.
Export public keys as a JWKS (JSON Web Key Set). Only supports Ed25519 and X25519 keys.
Serialize the keyring to a JSON string.
WARNING: contains private keys. Use toEncrypted() for secure storage.
Encrypt the keyring with a password using secretbox.
256-bit key (hex or bytes).
In-memory keyring for storing, looking up, rotating, and exporting keys.