MyCrypto/shared/enclave
Jean-Christophe Rona 96798e71fa Add support for the Archos Safe-T mini hardware wallet (#1963)
* Add support for the Archos Safe-T mini

* Safe-T mini: Fix version requirements

* Fix fade-in animation is not hitting the 5th wallet option

* Disable safe-t on electron:
2018-07-17 12:46:41 -07:00
..
client Refactor redux pattern from top-level to ducks (#1936) 2018-06-17 20:53:00 -05:00
server Add support for the Archos Safe-T mini hardware wallet (#1963) 2018-07-17 12:46:41 -07:00
README.md Electron Ledger + Trezor Support (#1836) 2018-06-15 18:25:29 -05:00
preload.ts Electron Ledger + Trezor Support (#1836) 2018-06-15 18:25:29 -05:00
types.ts Add support for the Archos Safe-T mini hardware wallet (#1963) 2018-07-17 12:46:41 -07:00
utils.ts Electron Ledger + Trezor Support (#1836) 2018-06-15 18:25:29 -05:00

README.md

ETH Enclave

Enclave is the communication layer between hardware wallets and the Electron web view. This layer is necessary if you've disabled node integration, and enabled context isolation on your webview (Which is something you should do.)

Enclave uses Electron's Protocol API to open up an HTTP-like communication layer between Electron and the web view. You can read more about this approach here.

Setup

// Electron main js
import { registerServer } from 'enclave/server';
registerServer(app);
// Electron preload js
import { registerProtocol } from 'enclave/preload';
registerProtocol();

Usage

import EnclaveAPI, { WalletTypes } from 'enclave/client';
EnclaveAPI.getChainCode({
  walletType: WalletTypes.LEDGER,
  dpath: "m/44'/60'/0'/0"
}).then(({ publicKey, chainCode }) => {
  // ...
});