コンテンツにスキップ

PublicKey⚓︎

PublicKey
Represents a public key.

Extends⚓︎

Constructors⚓︎

new PublicKey()⚓︎

new PublicKey(publicKey): PublicKey

Creates a public key from bytes or a hex string.

Parameters⚓︎

Parameter Type Description
publicKey string | Uint8Array<ArrayBufferLike> | PublicKey Input string, byte array or public key.

Returns⚓︎

PublicKey

Overrides⚓︎

ByteArray.constructor

Properties⚓︎

Property Modifier Type Description Inherited from
bytes public Uint8Array<ArrayBuffer> Underlying bytes. ByteArray.bytes
NAME static string Byte array name (required because constructor.name is dropped during minification). ByteArray.NAME
SIZE static number Byte size of raw public key. -

Methods⚓︎

toJson()⚓︎

toJson(): string
PublicKey.toJson
Returns representation of this object that can be stored in JSON.

Returns⚓︎

string

JSON-safe representation of this object.

Inherited from⚓︎

ByteArray.toJson


toString()⚓︎

toString(): string
PublicKey.toString
Returns string representation of this object.

Returns⚓︎

string

String representation of this object

Inherited from⚓︎

ByteArray.toString