@keepkey/keepkey.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Device
Keep
Key
constructor
auto
Button
device
features
acknowledge
With
Character
acknowledge
With
Character
Delete
acknowledge
With
Character
Done
acknowledge
With
Character
Proto
acknowledge
With
Passphrase
acknowledge
With
Pin
apply
Policy
apply
Settings
cancel
change
Pin
cipher
Key
Value
clear
Session
decrypt
Key
Value
ethereum
Get
Address
ethereum
Sign
Message
ethereum
Sign
Tx
ethereum
Verify
Message
firmware
Erase
get
Address
get
All
Coins
AsMap
get
Coin
ShortcutXPub
Pairs
get
Coin
Table
get
Entropy
get
Features
get
Num
Coins
get
Public
Key
initialize
load
Device
ping
prepare
Sign
Tx
recovery
Device
remove
Pin
reset
Device
send
sign
Message
sign
Transaction
soft
Reset
verify
Message
wipe
Device
with
WebUSB
Keep
Key
Manager
WebUSBDevice
Event
Keep
Key
Config
Keep
Key
Manager
Config
Token
Tx
Transaction
WebUSBDevice
Config
USBDevice
Event
Callback
HARDENED
Message
Type
NO_
THROW_
CODES
SEGMENT_
SIZE
is
Array
message
Name
Registry
message
Type
Registry
mock
Call
nested
values
arrayify
bip32
Like
bip32
ToAddressNList
defaultUSBDevice
Callback
empty
OrVal
eth
TxAs
Proto
from
Hex
String
le
Byte
Array
ToLong
make
Event
new
Token
Transaction
proto
Field
ToSet
Method
to
Hex
String
initial
Keep
Key
Args
sample
Transaction
Hierarchy
KeepKey
Index
Constructors
constructor
Properties
auto
Button
device
features
Methods
acknowledge
With
Character
acknowledge
With
Character
Delete
acknowledge
With
Character
Done
acknowledge
With
Character
Proto
acknowledge
With
Passphrase
acknowledge
With
Pin
apply
Policy
apply
Settings
cancel
change
Pin
cipher
Key
Value
clear
Session
decrypt
Key
Value
ethereum
Get
Address
ethereum
Sign
Message
ethereum
Sign
Tx
ethereum
Verify
Message
firmware
Erase
get
Address
get
All
Coins
AsMap
get
Coin
ShortcutXPub
Pairs
get
Coin
Table
get
Entropy
get
Features
get
Num
Coins
get
Public
Key
initialize
load
Device
ping
prepare
Sign
Tx
recovery
Device
remove
Pin
reset
Device
send
sign
Message
sign
Transaction
soft
Reset
verify
Message
wipe
Device
with
WebUSB
Constructors
constructor
new
Keep
Key
(
config
:
KeepKeyConfig
)
:
KeepKey
Parameters
config:
KeepKeyConfig
Returns
KeepKey
Properties
auto
Button
auto
Button
:
boolean
= false
device
device
:
Device
features
features
:
Messages.Features.AsObject
Methods
acknowledge
With
Character
acknowledge
With
Character
(
character
:
string
)
:
Promise
<
[
number
,
any
]
>
Parameters
character:
string
Returns
Promise
<
[
number
,
any
]
>
acknowledge
With
Character
Delete
acknowledge
With
Character
Delete
(
)
:
Promise
<
[
number
,
any
]
>
Returns
Promise
<
[
number
,
any
]
>
acknowledge
With
Character
Done
acknowledge
With
Character
Done
(
)
:
Promise
<
[
number
,
any
]
>
Returns
Promise
<
[
number
,
any
]
>
acknowledge
With
Character
Proto
acknowledge
With
Character
Proto
(
character
:
string
, _delete
:
boolean
, _done
:
boolean
)
:
Promise
<
[
number
,
any
]
>
Parameters
character:
string
_delete:
boolean
_done:
boolean
Returns
Promise
<
[
number
,
any
]
>
acknowledge
With
Passphrase
acknowledge
With
Passphrase
(
passphrase
:
string
)
:
Promise
<
[
number
,
any
]
>
Parameters
passphrase:
string
Returns
Promise
<
[
number
,
any
]
>
acknowledge
With
Pin
acknowledge
With
Pin
(
pin
:
string
)
:
Promise
<
[
number
,
any
]
>
Parameters
pin:
string
Returns
Promise
<
[
number
,
any
]
>
apply
Policy
apply
Policy
(
p
:
Types.PolicyType.AsObject
)
:
Promise
<
void
>
Parameters
p:
Types.PolicyType.AsObject
Returns
Promise
<
void
>
apply
Settings
apply
Settings
(
s
:
Messages.ApplySettings.AsObject
)
:
Promise
<
void
>
Parameters
s:
Messages.ApplySettings.AsObject
Returns
Promise
<
void
>
cancel
cancel
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
change
Pin
change
Pin
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
cipher
Key
Value
cipher
Key
Value
(
v
:
Messages.CipherKeyValue.AsObject
)
:
Promise
<
string
|
Uint8Array
>
Parameters
v:
Messages.CipherKeyValue.AsObject
Returns
Promise
<
string
|
Uint8Array
>
clear
Session
clear
Session
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
decrypt
Key
Value
decrypt
Key
Value
(
v
:
Messages.CipherKeyValue.AsObject
)
:
Promise
<
string
|
Uint8Array
>
Parameters
v:
Messages.CipherKeyValue.AsObject
Returns
Promise
<
string
|
Uint8Array
>
ethereum
Get
Address
ethereum
Get
Address
(
a
:
Messages.EthereumGetAddress.AsObject
)
:
Promise
<
string
>
Parameters
a:
Messages.EthereumGetAddress.AsObject
Returns
Promise
<
string
>
ethereum
Sign
Message
ethereum
Sign
Message
(
m
:
Messages.EthereumSignMessage.AsObject
)
:
Promise
<
any
>
Parameters
m:
Messages.EthereumSignMessage.AsObject
Returns
Promise
<
any
>
ethereum
Sign
Tx
ethereum
Sign
Tx
(
tx
:
Messages.EthereumSignTx.AsObject
, addressType
?:
OutputAddressType
, exchangeType
?:
ExchangeType
, data
?:
Uint8Array
|
string
, chainId
?:
number
)
:
Promise
<
any
>
Parameters
tx:
Messages.EthereumSignTx.AsObject
Optional
addressType:
OutputAddressType
Optional
exchangeType:
ExchangeType
Optional
data:
Uint8Array
|
string
Optional
chainId:
number
Returns
Promise
<
any
>
ethereum
Verify
Message
ethereum
Verify
Message
(
m
:
Messages.EthereumVerifyMessage.AsObject
)
:
Promise
<
any
>
Parameters
m:
Messages.EthereumVerifyMessage.AsObject
Returns
Promise
<
any
>
firmware
Erase
firmware
Erase
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Address
get
Address
(
g
:
Messages.GetAddress.AsObject
)
:
Promise
<
string
>
Parameters
g:
Messages.GetAddress.AsObject
Returns
Promise
<
string
>
get
All
Coins
AsMap
get
All
Coins
AsMap
(
)
:
Promise
<
object
>
Returns
Promise
<
object
>
get
Coin
ShortcutXPub
Pairs
get
Coin
ShortcutXPub
Pairs
(
coinTable
:
Types.CoinType.AsObject
[]
)
:
Promise
<
[
string
,
string
]
[]
>
Parameters
coinTable:
Types.CoinType.AsObject
[]
Returns
Promise
<
[
string
,
string
]
[]
>
get
Coin
Table
get
Coin
Table
(
start
?:
number
, end
?:
number
)
:
Promise
<
Types.CoinType.AsObject
[]
>
Parameters
Default value
start:
number
= 0
Default value
end:
number
= start + 10
Returns
Promise
<
Types.CoinType.AsObject
[]
>
get
Entropy
get
Entropy
(
size
:
number
)
:
Promise
<
string
|
Uint8Array
>
Parameters
size:
number
Returns
Promise
<
string
|
Uint8Array
>
get
Features
get
Features
(
)
:
Promise
<
Messages.Features.AsObject
>
Returns
Promise
<
Messages.Features.AsObject
>
get
Num
Coins
get
Num
Coins
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Public
Key
get
Public
Key
(
g
:
Messages.GetPublicKey.AsObject
)
:
Promise
<
[
Types.HDNodeType.AsObject
,
string
]
>
Parameters
g:
Messages.GetPublicKey.AsObject
Returns
Promise
<
[
Types.HDNodeType.AsObject
,
string
]
>
initialize
initialize
(
)
:
Promise
<
Messages.Features.AsObject
|
void
>
Returns
Promise
<
Messages.Features.AsObject
|
void
>
load
Device
load
Device
(
l
:
Messages.LoadDevice.AsObject
)
:
Promise
<
void
>
Parameters
l:
Messages.LoadDevice.AsObject
Returns
Promise
<
void
>
ping
ping
(
p
:
Messages.Ping.AsObject
)
:
Promise
<
string
|
undefined
>
Parameters
p:
Messages.Ping.AsObject
Returns
Promise
<
string
|
undefined
>
Private
prepare
Sign
Tx
prepare
Sign
Tx
(
coinName
:
string
, inputs
:
any
[]
, outputs
:
any
[]
, exchangeOutputs
?:
any
[]
)
:
Promise
<
any
>
Parameters
coinName:
string
inputs:
any
[]
outputs:
any
[]
Optional
exchangeOutputs:
any
[]
Returns
Promise
<
any
>
recovery
Device
recovery
Device
(
r
:
Messages.RecoveryDevice.AsObject
)
:
Promise
<
void
>
Parameters
r:
Messages.RecoveryDevice.AsObject
Returns
Promise
<
void
>
remove
Pin
remove
Pin
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
reset
Device
reset
Device
(
r
:
Messages.ResetDevice.AsObject
)
:
Promise
<
void
>
Parameters
r:
Messages.ResetDevice.AsObject
Returns
Promise
<
void
>
send
send
(
events
:
Event
[]
)
:
Promise
<
void
>
Parameters
events:
Event
[]
Returns
Promise
<
void
>
sign
Message
sign
Message
(
s
:
Messages.SignMessage.AsObject
)
:
Promise
<
Array
<
string
|
Uint8Array
>
>
Parameters
s:
Messages.SignMessage.AsObject
Returns
Promise
<
Array
<
string
|
Uint8Array
>
>
sign
Transaction
sign
Transaction
(
coinName
:
string
, inputs
:
any
[]
, outputs
:
any
[]
, exchangeOutputs
?:
any
[]
, version
?:
number
, lockTime
?:
number
)
:
Promise
<
[
string
[]
,
string
]
>
Parameters
coinName:
string
inputs:
any
[]
outputs:
any
[]
Default value
exchangeOutputs:
any
[]
= []
Optional
version:
number
Optional
lockTime:
number
Returns
Promise
<
[
string
[]
,
string
]
>
soft
Reset
soft
Reset
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
verify
Message
verify
Message
(
addr
:
string
, coinName
:
string
, msg
:
string
|
Uint8Array
, sig
:
string
|
Uint8Array
)
:
Promise
<
void
>
Parameters
addr:
string
coinName:
string
msg:
string
|
Uint8Array
sig:
string
|
Uint8Array
Returns
Promise
<
void
>
wipe
Device
wipe
Device
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Static
with
WebUSB
with
WebUSB
(
webUSBDeviceConfig
:
WebUSBDeviceConfig
)
:
KeepKey
Parameters
webUSBDeviceConfig:
WebUSBDeviceConfig
Returns
KeepKey
Generated using
TypeDoc