KeyManager class

Agent plugin that provides IKeyManager methods

Signature:
export declare class KeyManager implements IAgentPlugin
Implements: [IAgentPlugin](/docs/api/core.iagentplugin)

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the KeyManager class

Properties

PropertyModifiersTypeDescription
methodsIKeyManagerPlugin methods
schemaany

Methods

MethodModifiersDescription
createX25519ECDH(secretKeyRef)
keyManagerCreate(args)Creates and returns a new key
keyManagerDecryptJWE({ kid, data })Decrypts data
keyManagerDelete({ kid })Deletes a key
keyManagerEncryptJWE({ kid, to, data })Encrypts data
keyManagerGet({ kid })Returns an existing key
keyManagerGetKeyManagementSystems()Lists available key management systems
keyManagerImport(key)Imports a created key
keyManagerSharedSecret(args)
keyManagerSign(args)Generates a signature according to the algorithm specified.
keyManagerSignEthTX({ kid, transaction })Signs Ethereum transaction
keyManagerSignJWT({ kid, data })Signs JWT