BjjProvider class
Provider for Baby Jub Jub keys
BjjProvider implements IKeyProvider interface
Signature:
export declare class BjjProvider implements IKeyProvider
Implements: IKeyProvider
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(keyType, keyStore) | Creates an instance of BjjProvider. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
keyType | KmsKeyType | key type that is handled by BJJ Provider {KmsKeyType} |
Methods
Method | Modifiers | Description |
---|---|---|
newPrivateKeyFromSeed(seed) | generates a baby jub jub key from a seed phrase | |
publicKey(keyId) | Gets public key by kmsKeyId | |
sign(keyId, data) | signs prepared payload of size, with a key id |