How to use the eth-trezor-keyring.type function in eth-trezor-keyring

To help you get started, we’ve selected a few eth-trezor-keyring examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brave / ethereum-remote-client / app / scripts / metamask-controller.js View on Github external
async getKeyringForDevice (deviceName, hdPath = null) {
    let keyringName = null
    switch (deviceName) {
      case 'trezor':
        keyringName = TrezorKeyring.type
      case 'ledger':
        keyringName = LedgerBridgeKeyring.type
        throw new Error('MetamaskController:getKeyringForDevice - Unknown device')
    let keyring = await this.keyringController.getKeyringsByType(keyringName)[0]
    if (!keyring) {
      keyring = await this.keyringController.addNewKeyring(keyringName)
    if (hdPath && keyring.setHdPath) {
    } = this.networkController.getProviderConfig().type


A MetaMask compatible keyring, for trezor hardware wallets

Latest version published 11 months ago

Package Health Score

72 / 100
Full package analysis

Popular eth-trezor-keyring functions