MyCrypto/shared/enclave
Connor Bryan 6fc6d9e074 Enable login for TREZOR with passphrase (#2052)
* Replicate PIN functionality for Passphrase

* Typo...

* Lol, really?

* Removed _ from passphrase event callback

* Change passphrase input to password

* Test for daniel

* Small fixes

* Change passphrase on input, not on blur

* Be obvious about focused buttons
2018-07-11 18:22:02 -05:00
..
client Refactor redux pattern from top-level to ducks (#1936) 2018-06-17 20:53:00 -05:00
server Enable login for TREZOR with passphrase (#2052) 2018-07-11 18:22:02 -05: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 Electron Ledger + Trezor Support (#1836) 2018-06-15 18:25:29 -05: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 }) => {
  // ...
});