Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/account
PrivateKey
Class PrivateKey
Hierarchy (
View Summary
)
EllipticKey
PrivateKey
Implements
PrivateKeyInstance
Index
Constructors
constructor
Properties
_is
Private
Key
_public
private
Constructor
Key
Accessors
base58
bytes
hex
keccak256
length
public
Methods
sign
verify
create
from
is
is
Private
Key
Constructors
Protected
constructor
new
PrivateKey
(
privateConstructorKey
:
string
,
value
:
ArrayBufferLike
,
publicKey
:
PublicKeyInstance
,
)
:
PrivateKey
Parameters
privateConstructorKey
:
string
value
:
ArrayBufferLike
publicKey
:
PublicKeyInstance
Returns
PrivateKey
Properties
Protected
_is
Private
Key
_isPrivateKey
:
boolean
= true
Protected
_public
_public
:
PublicKeyInstance
Protected
Static
private
Constructor
Key
privateConstructorKey
:
string
= ...
Accessors
base58
get
base58
()
:
string
Returns
string
bytes
get
bytes
()
:
ArrayBuffer
|
SharedArrayBuffer
Returns
ArrayBuffer
|
SharedArrayBuffer
hex
get
hex
()
:
Lowercase
<
string
>
Returns
Lowercase
<
string
>
keccak256
get
keccak256
()
:
ArrayBufferLike
Returns
ArrayBufferLike
length
get
length
()
:
number
Returns
number
public
get
public
()
:
PublicKeyInstance
Returns
PublicKeyInstance
Methods
sign
sign
(
hash
:
ArrayBufferLike
)
:
Promise
<
ArrayBufferLike
>
Parameters
hash
:
ArrayBufferLike
Returns
Promise
<
ArrayBufferLike
>
verify
verify
(
msg
:
ArrayBufferLike
,
signature
:
ArrayBufferLike
)
:
Promise
<
boolean
>
Parameters
msg
:
ArrayBufferLike
signature
:
ArrayBufferLike
Returns
Promise
<
boolean
>
Static
create
create
(
value
:
bigint
|
ArrayBufferLike
)
:
Promise
<
PrivateKey
>
Parameters
value
:
bigint
|
ArrayBufferLike
Returns
Promise
<
PrivateKey
>
Static
from
from
(
data
:
undefined
|
ArrayBuffer
)
:
undefined
|
Data
Parameters
data
:
undefined
|
ArrayBuffer
Returns
undefined
|
Data
Static
is
is
(
value
:
unknown
)
:
value
is
AbstractData
Parameters
value
:
unknown
Returns
value
is
AbstractData
Static
is
Private
Key
isPrivateKey
(
value
:
unknown
)
:
boolean
Parameters
value
:
unknown
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_is
Private
Key
_public
private
Constructor
Key
Accessors
base58
bytes
hex
keccak256
length
public
Methods
sign
verify
create
from
is
is
Private
Key
XYO Platform SDK - v3.6.9
Loading...