Skip to content

hardforkio/trezor-wallet-provider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trezor-wallet-provider

Trezor-enabled Web3 subprovider for metamask's provider engine. Use it to sign transactions with Trezor hardware wallet.

This is based on https://github.com/daonomic/trezor-wallet-provider

Install

$ npm install @hardfork/trezor-wallet-provider

General Usage

Please also read the tests files!

You can use this subprovider to sign transaction using trezor hardware wallet.

import { createTrezorProvider } from '@hardfork/trezor-wallet-provider'

var engine = new ProviderEngine()
engine.addProvider(createTrezorProvider("m/44'/1'/0'/0/0"))
engine.addProvider(new FiltersSubprovider())
engine.addProvider(
  new Web3Subprovider(
    new Web3.providers.HttpProvider('http://ropsten.infura.com/{key}')
  )
)
engine.start()

TrezorProvider will expose one address for specified path.

Parameters:

  • path: string. derivation path for address

Truffle Usage

You can easily use this within a Truffle configuration

About

HD Wallet-enabled Web3 provider

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%