ledger-go/

directory
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: LGPL-3.0

README

evmos-ledger-go

Helper library for implementing Ledger support in the Evmos CLI. This wraps Ethereum-Ledger-Go to provide a Ledger interface that is compatible (with minor additions) with the Cosmos SDK.

Overview

Evmos-Ledger-Go provides a Cosmos SDK Ledger object which can be instantiated, stored in the keyring, and used to sign CLI functions (such as sending tokens or staking) via Ledger.

Usage

  1. Create a Cosmos SDK EncodingConfig with the requisite type registration (e.g. using an app's ModuleBasics)
  2. Call EvmosLedgerDerivation using this config as a parameter to receive a LedgerDerivation function
  3. Instantiate the Cosmos SDK Ledger instance with the provided LedgerDerivation function

Technical Notes

The Ledger will take a signature byte stream of either Amino (legacy) or Protobuf type payloads, decode the payload using the provided EncodingConfig, construct an EIP-712TypedData payload to be signed with the Ethereum Ledger app, and return the signature.

Directories

Path Synopsis
Package accounts implements high level Ethereum account management.
Package accounts implements high level Ethereum account management.
Package usbwallet implements support for USB hardware wallets.
Package usbwallet implements support for USB hardware wallets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL