Search
Preparing search index...
The search index is not available
Leap Keychain
Options
All
Public
Public/Protected
All
Inherited
Menu
Leap Keychain
BtcWalletPk
Class BtcWalletPk
Hierarchy
BtcWallet
BtcWalletPk
Index
Constructors
constructor
Methods
get
Accounts
get
Accounts
With
Priv
Key
signECDSA
sign
Idx
sign
Psbt
Constructors
constructor
new
Btc
Wallet
Pk
(
privateKey
:
string
, options
:
BTCWalletOptions
)
:
BtcWalletPk
Parameters
privateKey:
string
options:
BTCWalletOptions
Returns
BtcWalletPk
Methods
get
Accounts
get
Accounts
(
)
:
{
address
:
string
;
algo
:
string
;
pubkey
:
Uint8Array
}
[]
Returns
{
address
:
string
;
algo
:
string
;
pubkey
:
Uint8Array
}
[]
get
Accounts
With
Priv
Key
get
Accounts
With
Priv
Key
(
)
:
{
address
:
string
;
addressInfo
:
P2Ret
;
algo
:
string
;
privateKey
:
Uint8Array
;
pubkey
:
Uint8Array
}
[]
Returns
{
address
:
string
;
addressInfo
:
P2Ret
;
algo
:
string
;
privateKey
:
Uint8Array
;
pubkey
:
Uint8Array
}
[]
signECDSA
signECDSA
(
address
:
string
, hash
:
Uint8Array
)
:
Promise
<
{
recoveryParam
:
number
;
signature
:
Uint8Array
}
>
Parameters
address:
string
hash:
Uint8Array
Returns
Promise
<
{
recoveryParam
:
number
;
signature
:
Uint8Array
}
>
sign
Idx
sign
Idx
(
address
:
string
, tx
:
Transaction
, idx
:
number
)
:
void
Parameters
address:
string
tx:
Transaction
idx:
number
Returns
void
sign
Psbt
sign
Psbt
(
address
:
string
, psbt
:
string
)
:
{
signTx
:
(
(
)
=>
void
)
;
tx
:
Transaction
}
Parameters
address:
string
psbt:
string
Returns
{
signTx
:
(
(
)
=>
void
)
;
tx
:
Transaction
}
sign
Tx
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
tx
:
Transaction
Modules
<internal>
Secp256k1
Btc
Wallet
Pk
constructor
get
Accounts
get
Accounts
With
Priv
Key
signECDSA
sign
Idx
sign
Psbt