Preparing search index...
The search index is not available
Documentation
Documentation
near-api-js
utils
PublicKey
Class PublicKey
PublicKey representation that has type and bytes of the key.
Hierarchy
Assignable
PublicKey
Index
Constructors
constructor
Properties
data
key
Type
Methods
to
String
verify
from
from
String
Constructors
constructor
new
Public
Key
(
properties
)
:
PublicKey
Parameters
properties
:
any
Returns
PublicKey
Properties
data
data
:
Uint8Array
key
Type
key
Type
:
ED25519
Methods
to
String
to
String
(
)
:
string
Returns
string
verify
verify
(
message
,
signature
)
:
boolean
Parameters
message
:
Uint8Array
signature
:
Uint8Array
Returns
boolean
Static
from
from
(
value
)
:
PublicKey
Parameters
value
:
string
|
PublicKey
Returns
PublicKey
Static
from
String
from
String
(
encodedKey
)
:
PublicKey
Parameters
encodedKey
:
string
Returns
PublicKey
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
data
key
Type
to
String
verify
from
from
String
Documentation
near-api-js - v2.1.4
@near-js/accounts - v0.1.4
@near-js/biometric-ed25519 - v0.4.0
@near-js/crypto - v0.0.5
@near-js/iframe-rpc - v0.0.2
@near-js/keystores - v0.0.5
@near-js/keystores-browser - v0.0.5
@near-js/keystores-node - v0.0.5
@near-js/providers - v0.0.7
@near-js/signers - v0.0.5
@near-js/transactions - v0.2.1
@near-js/types - v0.0.4
@near-js/utils - v0.0.4
@near-js/wallet-account - v0.0.7
Generated using
TypeDoc
PublicKey representation that has type and bytes of the key.