Left Curve Software Stack
Home
GitHub
Preparing search index...
@left-curve/dango
PrivateKeySigner
Class PrivateKeySigner
Implements
Signer
Index
Constructors
constructor
Methods
get
Key
Hash
sign
Arbitrary
sign
Bytes
sign
Tx
from
Mnemonic
from
Private
Key
from
Random
Key
Constructors
constructor
new
PrivateKeySigner
(
keyPair
:
KeyPair
)
:
PrivateKeySigner
Parameters
keyPair
:
KeyPair
Returns
PrivateKeySigner
Methods
get
Key
Hash
getKeyHash
()
:
Promise
<
string
>
Returns
Promise
<
string
>
sign
Arbitrary
signArbitrary
(
payload
:
ArbitraryTypedData
,
)
:
Promise
<
{
credential
:
{
standard
:
{
keyHash
:
string
;
signature
:
{
secp256k1
:
string
}
}
;
}
;
signed
:
ArbitraryTypedData
;
}
,
>
Parameters
payload
:
ArbitraryTypedData
Returns
Promise
<
{
credential
:
{
standard
:
{
keyHash
:
string
;
signature
:
{
secp256k1
:
string
}
}
;
}
;
signed
:
ArbitraryTypedData
;
}
,
>
sign
Bytes
signBytes
(
bytes
:
Uint8Array
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
bytes
:
Uint8Array
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
sign
Tx
signTx
(
signDoc
:
TypedData
,
)
:
Promise
<
{
credential
:
{
standard
:
{
keyHash
:
string
;
signature
:
{
secp256k1
:
string
}
}
;
}
;
signed
:
TypedData
<
TxMessageType
>
;
}
,
>
Parameters
signDoc
:
TypedData
Returns
Promise
<
{
credential
:
{
standard
:
{
keyHash
:
string
;
signature
:
{
secp256k1
:
string
}
}
;
}
;
signed
:
TypedData
<
TxMessageType
>
;
}
,
>
Static
from
Mnemonic
fromMnemonic
(
mnemonic
:
string
)
:
PrivateKeySigner
Parameters
mnemonic
:
string
Returns
PrivateKeySigner
Static
from
Private
Key
fromPrivateKey
(
privateKey
:
Uint8Array
)
:
PrivateKeySigner
Parameters
privateKey
:
Uint8Array
Returns
PrivateKeySigner
Static
from
Random
Key
fromRandomKey
()
:
PrivateKeySigner
Returns
PrivateKeySigner
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Key
Hash
sign
Arbitrary
sign
Bytes
sign
Tx
from
Mnemonic
from
Private
Key
from
Random
Key
Home
GitHub
Left Curve Software Stack
Loading...