Interface: PublicKey ​
Defined in: public.ts:32
General PublicKey Interface used by CompressedSecp256k1PublicKey. PublicKey
Properties ​
compressed ​
readonlycompressed:Bytes
Defined in: public.ts:37
Compressed public key getter.
hex ​
readonlyhex:Hex
Defined in: public.ts:85
CompressedSecp256k1PublicKey hex string getter.
isEven ​
readonlyisEven:boolean
Defined in: public.ts:61
CompressedSecp256k1PublicKey isEven getter.
multibase ​
readonlymultibase:MultibaseObject
Defined in: public.ts:79
CompressedSecp256k1PublicKey multibase getter.
Returns ​
The public key as MultibaseObject as a address string, key and prefix bytes.
parity ​
readonlyparity:number
Defined in: public.ts:55
CompressedSecp256k1PublicKey parity getter.
point ​
readonlypoint:Point
Defined in: public.ts:91
CompressedSecp256k1PublicKey point getter.
uncompressed ​
readonlyuncompressed:Bytes
Defined in: public.ts:43
Uncompressed public key getter.
x ​
readonlyx:Bytes
Defined in: public.ts:67
CompressedSecp256k1PublicKey x-coordinate getter.
xOnly ​
readonlyxOnly:Bytes
Defined in: public.ts:49
X-only public key getter.
y ​
readonlyy:Bytes
Defined in: public.ts:73
CompressedSecp256k1PublicKey y-coordinate getter.
Methods ​
decode() ​
decode():
Bytes
Defined in: public.ts:97
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:103
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:110
Public key equality check.
Parameters ​
other ​
PublicKey
The public key to compare.
Returns ​
boolean
True if the public keys are equal.