Skip to main content

BjjProvider class

Provider for Baby Jub Jub keys

BjjProvider implements IKeyProvider interface

Signature:

export declare class BjjProvider 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(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