PublicKey
Last updated
Last updated
• Docs
/ / PublicKey
A abstraction on top of the NEAR public key string. Public key in a binary format with base58 string serialization with human-readable curve. The key types currently supported are secp256k1
and ed25519
.
new PublicKey(
data
):
Parameters
• data: Uint8Array
The string you want to create a PublicKey from.
Returns
Defined in
data:
Uint8Array
The actual value of the public key.
Defined in
The curve type of the public key.
Returns
Defined in
Create a public key from a public key string.
Parameters
• publicKeyString: string
The public key string you want to create a PublicKey from.
Returns
Defined in
curveType():
static
fromString(publicKeyString
):