Variable: Curve
const
Curve:object
Defined in: src/Utils/crypto.ts:13
Type declaration
generateKeyPair()
generateKeyPair: () =>
KeyPair
Returns
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