Skip to main content

Sec256k1Provider class

Provider for Sec256p1 keys256p1

Sec256p1Provider implements IKeyProvider interface

Signature:

export declare class Sec256k1Provider implements IKeyProvider 

Implements: IKeyProvider

Constructors

ConstructorModifiersDescription
(constructor)(keyType, keyStore)Creates an instance of BjjProvider.

Properties

PropertyModifiersTypeDescription
keyTypeKmsKeyTypekey type that is handled by BJJ Provider {KmsKeyType}

Methods

MethodModifiersDescription
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