Class: LedgerWallet

LedgerWallet

Ledger wallet implementation

new LedgerWallet()

Source:
hdwallet/wallets/ledger.js

Methods


<static> id()

Identity number
Source:
hdwallet/wallets/ledger.js

<async> open()

Source:
hdwallet/wallets/ledger.js

<async> close()

Source:
hdwallet/wallets/ledger.js

<async> healthCheck()

Health check
Source:
hdwallet/wallets/ledger.js
Returns:
(bool} true if ok, otherwise false

<async> getPublicKey(string)

Get public key We only support 'WAN', reference https://github.com/LedgerHQ/ledgerjs/blob/master/packages/hw-app-eth/src/Eth.js
Parameters:
Name Type Description
string path BIP44 path
Source:
hdwallet/wallets/ledger.js

<async> getAddress(string, object)

Get address directly
Parameters:
Name Type Description
string path BIP44 path
object opt
Source:
hdwallet/wallets/ledger.js

getPrivateKey()

Source:
hdwallet/wallets/ledger.js

<async> sec256k1sign(string,, Buffer,)

Sign raw message using SEC(Standard for Efficent Cryptography) 256k1 curve
Parameters:
Name Type Description
string, path BIP44 path to locate private to sign the message
Buffer, buf raw message to sign
Source:
hdwallet/wallets/ledger.js
Returns:
- {r, s, v}
Type
Object