Interface: SecretKey ​
Defined in: secret.ts:26
General SecretKey interface for the Secp256k1SecretKey class. SecretKey
Properties ​
bytes ​
readonlybytes:Bytes
Defined in: secret.ts:31
Get the secret key bytes.
hex ​
readonlyhex:Hex
Defined in: secret.ts:44
Get the secret key as a hex string.
seed ​
seed:
bigint
Defined in: secret.ts:38
Getter returns the secret key bytes in bigint format. Setter allows alternative method of using a bigint seed for the entropy.
Methods ​
computePublicKey() ​
computePublicKey():
CompressedSecp256k1PublicKey
Defined in: secret.ts:57
Uses the secret key to compute the corresponding public key.
Returns ​
The computed public key bytes.
equals() ​
equals(
other):boolean
Defined in: secret.ts:51
Checks if this secret key is equal to another secret key.
Parameters ​
other ​
The other secret key to compare.
Returns ​
boolean
True if the private keys are equal.
isValid() ​
isValid():
boolean
Defined in: secret.ts:63
Checks if the secret key is valid.
Returns ​
boolean
Whether the secret key is valid.
json() ​
json():
SecretKeyObject
Defined in: secret.ts:69
JSON representation of a Secp256k1SecretKey object.
Returns ​
The Secp256k1SecretKey as a JSON object.