Preparing search index...
The search index is not available
OPNet
OPNet
CustomKeypair
Class CustomKeypair
Abstract
Create a custom keypair. CustomKeypair
Hierarchy (
view full
)
CustomKeypair
UnisatSigner
Implements
Signer
Index
Constructors
constructor
Properties
addresses
network
p2tr
p2wpkh
public
Key
Methods
get
Public
Key
init
sign
sign
Input
sign
Schnorr
sign
Taproot
Input
verify
Constructors
Protected
constructor
new
Custom
Keypair
(
)
:
CustomKeypair
Returns
CustomKeypair
Properties
Abstract
addresses
addresses
:
string
[]
Abstract
network
network
:
Network
Abstract
p2tr
p2tr
:
string
Abstract
p2wpkh
p2wpkh
:
string
Abstract
public
Key
public
Key
:
Buffer
Methods
Abstract
get
Public
Key
get
Public
Key
(
)
:
Buffer
Returns
Buffer
Abstract
init
init
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Abstract
sign
sign
(
hash
,
lowR
?
)
:
Buffer
Parameters
hash
:
Buffer
Optional
lowR
:
boolean
Returns
Buffer
Abstract
sign
Input
sign
Input
(
transaction
,
i
,
sighashTypes
)
:
Promise
<
void
>
Parameters
transaction
:
Psbt
i
:
number
sighashTypes
:
number
[]
Returns
Promise
<
void
>
Abstract
sign
Schnorr
sign
Schnorr
(
hash
)
:
Buffer
Parameters
hash
:
Buffer
Returns
Buffer
Abstract
sign
Taproot
Input
sign
Taproot
Input
(
transaction
,
i
,
sighashTypes
)
:
Promise
<
void
>
Parameters
transaction
:
Psbt
i
:
number
sighashTypes
:
number
[]
Returns
Promise
<
void
>
Abstract
verify
verify
(
hash
,
signature
)
:
boolean
Parameters
hash
:
Buffer
signature
:
Buffer
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
addresses
network
p2tr
p2wpkh
public
Key
Methods
get
Public
Key
init
sign
sign
Input
sign
Schnorr
sign
Taproot
Input
verify
OPNet
Loading...
Create a custom keypair. CustomKeypair