git ssb

0+

wanderer🌟 / bls-lib



Tree: fc378c64787f6a082a4aec751ccf9fdffe72e076

Files: fc378c64787f6a082a4aec751ccf9fdffe72e076 / docs / index.md

16049 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

freeArray

index.js:90-92

frees an array of pointers

Parameters

idSetInt

index.js:99-104

creates an ID to use in with threshold groups

Parameters

sign

index.js:112-112

signs a message

Parameters

verify

index.js:120-120

verifies a signature

Parameters

publicKeyExport

index.js:127-127

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

Parameters

Returns TypedArray

secretKeyExport

index.js:134-134

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

Parameters

Returns TypedArray

signatureExport

index.js:141-141

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

Parameters

Returns TypedArray

hashToSecretKey

index.js:148-148

generates a secret key given a seed phrase.

Parameters

secretKeyDeserialize

index.js:155-155

write a secretKey to memory

Parameters

secretKeyImport

index.js:163-167

write a secretKey to memory and returns a pointer to it

Parameters

Returns Number

publicKeyDeserialize

index.js:174-174

write a publicKey to memory

Parameters

publicKeyImport

index.js:181-185

write a publicKey to memory and returns a pointer to it

Parameters

Returns Number

signatureDeserialize

index.js:192-192

write a signature to memory

Parameters

signatureImport

index.js:199-203

write a signature to memory and returns a pointer to it

Parameters

Returns Number

secretKeyRecover

index.js:211-211

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

Parameters

publicKeyRecover

index.js:219-219

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

Parameters

signatureRecover

index.js:227-227

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

Parameters

secretKeyShare

index.js:235-235

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:243-243

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