git ssb

0+

wanderer🌟 / bls-lib



Tree: 17361be6f15928b774bc8e866160dd8124db3390

Files: 17361be6f15928b774bc8e866160dd8124db3390 / docs / index.md

14004 bytesRaw

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

Table of Contents

onModuleInit

index.js:13-20

takes a callback that is called once the module is setup

Parameters

MCLBN_CURVE_FP254BNB

index.js:25-25

the FP254BNB curve

MCLBN_CURVE_FP382_1

index.js:30-30

the FP382_1 curve

MCLBN_CURVE_FP382_2

index.js:35-35

the FP382_2 curve

init

index.js:52-54

intailizes the libary to use a given curve

Parameters

secretKey

index.js:60-62

allocates a secret key

Returns number the pointer to the key

publicKey

index.js:68-70

allocates a secret key

Returns number the pointer to the key

signature

index.js:76-78

allocates a signature

Returns number the pointer to the signture

free

index.js:83-85

frees a pointer

Parameters

idSetInt

index.js:92-97

creates an ID to use in with threshold groups

Parameters

sign

index.js:105-105

signs a message

Parameters

verify

index.js:113-113

verifies a signature

Parameters

publicKeySerialize

index.js:120-120

given a pointer to a public key this returns 64 byte Int8Array containing the key

Parameters

Returns TypedArray

secretKeySerialize

index.js:127-127

given a pointer to a secret key this returns 32 byte Int8Array containing the key

Parameters

Returns TypedArray

signatureSerialize

index.js:134-134

given a pointer to a signature this returns 32 byte Int8Array containing the signature

Parameters

Returns TypedArray

hashToSecretKey

index.js:141-141

generates a secret key given a seed phrase.

Parameters

secretKeyDeserialize

index.js:148-148

write a secretKey to memory

Parameters

publicKeyDeserialize

index.js:155-155

write a publicKey to memory

Parameters

signatureDeserialize

index.js:162-162

write a signature to memory

Parameters

secretKeyRecover

index.js:170-170

Recovers a secret key for a group given the groups secret keys shares and the groups ids

Parameters

publicKeyRecover

index.js:178-178

Recovers a public key for a group given the groups public keys shares and the groups ids

Parameters

signatureRecover

index.js:186-186

Recovers a signature for a group given the groups public keys shares and the groups ids

Parameters

secretKeyShare

index.js:194-194

Creates a secket key share for a group member given the groups members id (which is a the secret key) and array of master secret keys

Parameters

publicKeyShare

index.js:202-202

Creates a public key share for a group member given the groups members id (which is a the secret key) and array of master public keys

Parameters

Built with git-ssb-web