IKeyProvider interface
KeyProvider is responsible for signing and creation of the keys
IKeyProvider
Signature:
export interface IKeyProvider
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
keyType | KmsKeyType | property to store key type {KmsKeyType} |
Methods
Method | Description |
---|---|
newPrivateKeyFromSeed(seed) | creates new key pair from given seed |
publicKey(keyID) | gets public key by key id |
sign(keyId, data, opts) | sign data with kms key |