Add thin Ledger default wrapper (#212)

* Add thin Ledger default wrapper

* move showAddress confirmFlag

* Add node hid support

* export Ledger

* addHardware

* libusb dep for CircleCI

* Cleanup typings (buffer expected)
This commit is contained in:
Jaco Greeff
2019-09-17 22:35:32 +02:00
committed by GitHub
parent 4579adbdec
commit 00c15f35c0
7 changed files with 323 additions and 24 deletions
+4
View File
@@ -36,6 +36,10 @@ export class Keyring extends Base implements KeyringStruct {
};
}
public addHardware (address: string | Uint8Array, hardwareType: string, meta: KeyringPair$Meta = {}): CreateResult {
return this.addExternal(address, { ...meta, hardwareType, isHardware: true });
}
public addPair (pair: KeyringPair, password: string): CreateResult {
this.keyring.addPair(pair);