Sec256k1Provider class
Provider for Sec256p1 keys256p1
Sec256p1Provider implements IKeyProvider interface
Signature:
export declare class Sec256k1Provider 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() | generates a baby jub jub key from a seed phrase | |
publicKey(keyId) | Gets public key by kmsKeyId | |
sign(keyId, data, opts) | signs prepared payload of size, with a key id |