Skip to main content
const Curve: object
Defined in: src/Utils/crypto.ts:14

Type declaration

generateKeyPair()

generateKeyPair: () => KeyPair

Returns

KeyPair

sharedKey()

sharedKey: (privateKey, publicKey) => Buffer<ArrayBuffer>

Parameters

privateKey
Uint8Array
publicKey
Uint8Array

Returns

Buffer<ArrayBuffer>

sign()

sign: (privateKey, buf) => Uint8Array<ArrayBufferLike>

Parameters

privateKey
Uint8Array
buf
Uint8Array

Returns

Uint8Array<ArrayBufferLike>

verify()

verify: (pubKey, message, signature) => boolean

Parameters

pubKey
Uint8Array
message
Uint8Array
signature
Uint8Array

Returns

boolean