PublicKey⚓︎
- PublicKey
- Represents a public key.
Extends⚓︎
Constructors⚓︎
new 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⚓︎
Properties⚓︎
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
bytes |
public |
Uint8Array |
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()⚓︎
- PublicKey.toJson
- Returns representation of this object that can be stored in JSON.
Returns⚓︎
string
JSON-safe representation of this object.
Inherited from⚓︎
toString()⚓︎
- PublicKey.toString
- Returns string representation of this object.
Returns⚓︎
string
String representation of this object