Interface: PublicKey ​
Defined in: public.ts:33
General PublicKey Interface used by CompressedSecp256k1PublicKey. PublicKey
Properties ​
compressed ​
readonlycompressed:Bytes
Defined in: public.ts:38
Compressed public key getter.
hex ​
readonlyhex:Hex
Defined in: public.ts:86
CompressedSecp256k1PublicKey hex string getter.
isEven ​
readonlyisEven:boolean
Defined in: public.ts:62
CompressedSecp256k1PublicKey isEven getter.
multibase ​
readonlymultibase:MultibaseObject
Defined in: public.ts:80
CompressedSecp256k1PublicKey multibase getter.
Returns ​
The public key as MultibaseObject as a address string, key and prefix bytes.
parity ​
readonlyparity:number
Defined in: public.ts:56
CompressedSecp256k1PublicKey parity getter.
point ​
readonlypoint:Point
Defined in: public.ts:92
CompressedSecp256k1PublicKey point getter.
uncompressed ​
readonlyuncompressed:Bytes
Defined in: public.ts:44
Uncompressed public key getter.
x ​
readonlyx:Bytes
Defined in: public.ts:68
CompressedSecp256k1PublicKey x-coordinate getter.
xOnly ​
readonlyxOnly:Bytes
Defined in: public.ts:50
X-only public key getter.
y ​
readonlyy:Bytes
Defined in: public.ts:74
CompressedSecp256k1PublicKey y-coordinate getter.
Methods ​
decode() ​
decode():
Bytes
Defined in: public.ts:98
Decode the base58btc multibase string to the compressed public key prefixed with 0x02.
Returns ​
The public key as a 33-byte compressed public key with header.
encode() ​
encode():
string
Defined in: public.ts:104
Encode the CompressedSecp256k1PublicKey as an x-only base58btc multibase public key.
Returns ​
string
The public key formatted a base58btc multibase string.
equals() ​
equals(
other):boolean
Defined in: public.ts:111
CompressedSecp256k1PublicKey key equality check. Checks if this public key is equal to other public key.
Parameters ​
other ​
The public key to compare.
Returns ​
boolean
True if the public keys are equal.
json() ​
json():
PublicKeyObject
Defined in: public.ts:117
JSON representation of a CompressedSecp256k1PublicKey object.
Returns ​
The CompressedSecp256k1PublicKey as a JSON object.