Creates an instance of PublicKey.
The public key byte array.
Get the public key bytes. See IPublicKey Method bytes for more details.
The public key bytes
Returns the raw public key as a hex string. See IPublicKey Method hex for more details.
The public key as a hex string.
Get the multibase public key. See IPublicKey Method multibase for more details.
The public key in base58btc x-only multibase format.
Get the parity byte of the public key. See IPublicKey Method parity for more details.
The parity byte of the public key.
Get the public key prefix bytes. See IPublicKey Method prefix for more details.
The 2-byte prefix of the public key.
Get the uncompressed public key. See IPublicKey Method uncompressed for more details.
The 65-byte uncompressed public key (0x04, x, y).
Get the x-coordinate of the public key. See IPublicKey Method x for more details.
The 32-byte x-coordinate of the public key.
Get the y-coordinate of the public key. See IPublicKey Method y for more details.
The 32-byte y-coordinate of the public key.
Decodes the multibase string to the 34-byte corresponding public key (2 byte prefix + 32 byte public key). See IPublicKey Method for more details.
The decoded public key: prefix and public key bytes
Encodes compressed secp256k1 public key from bytes to BIP340 base58btc multibase format See IPublicKey Method for more details.
The public key encoded in base-58-btc multibase format
Compares this public key to another public key. See IPublicKey Method equals for more details.
The other public key to compare
True if the public keys are equal, false otherwise.
Public key JSON representation. See IPublicKey.json for more details.
The public key as a JSON object.
Encapsulates a secp256k1 public key. Provides get methods for different formats (compressed, x-only, multibase). Provides helpers methods for comparison and serialization. PublicKey