Variables
Const secp256k1
secp256k1: ec = ...
Functions
Const compressPublicKey
- compressPublicKey(publicKey: Uint8Array): Uint8Array
-
Parameters
Returns Uint8Array
Const decompressPublicKey
- decompressPublicKey(publicKey: Uint8Array): Uint8Array
-
Parameters
Returns Uint8Array
Const getFingerprint
- getFingerprint(publicKey: Uint8Array): number
-
Parameters
Returns number
Const getPublicKey
- getPublicKey(privateKey: Uint8Array): Uint8Array
-
Parameters
Returns Uint8Array
Const pointToBuffer
- pointToBuffer(point: BasePoint, compact: boolean): Uint8Array
-
Parameters
-
point: BasePoint
-
compact: boolean
Returns Uint8Array
Const privateAdd
- privateAdd(privateKey: Uint8Array, tweak: Uint8Array): Uint8Array
-
Parameters
-
privateKey: Uint8Array
-
tweak: Uint8Array
Returns Uint8Array
Const privateToBuffer
- privateToBuffer(keyPair: KeyPair): Uint8Array
-
Parameters
Returns Uint8Array
Const publicAdd
- publicAdd(publicKey: Uint8Array, tweak: Uint8Array): Uint8Array
-
Parameters
-
publicKey: Uint8Array
-
tweak: Uint8Array
Returns Uint8Array
Const publicToBuffer
- publicToBuffer(keyPair: KeyPair, compact: boolean): Uint8Array
-
Parameters
-
keyPair: KeyPair
-
compact: boolean
Returns Uint8Array
Compress a public key. This function takes both compressed and uncompressed public keys, and always returns the compressed variant.