ledger

package
v12.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvmosSECP256K1

type EvmosSECP256K1 struct {
	*usbwallet.Hub
	PrimaryWallet accounts.Wallet
}

EvmosSECP256K1 defines a wrapper of the Ethereum App to for compatibility with Cosmos SDK chains.

func (EvmosSECP256K1) Close

func (e EvmosSECP256K1) Close() error

Close closes the associated primary wallet. Any requests on the object after a successful Close() should not work

func (EvmosSECP256K1) GetAddressPubKeySECP256K1

func (e EvmosSECP256K1) GetAddressPubKeySECP256K1(hdPath []uint32, hrp string) ([]byte, string, error)

GetAddressPubKeySECP256K1 takes in the HD path as well as a "Human Readable Prefix" (hrp) to return the public key bytes in secp256k1 format as well as the account address.

func (EvmosSECP256K1) GetPublicKeySECP256K1

func (e EvmosSECP256K1) GetPublicKeySECP256K1(hdPath []uint32) ([]byte, error)

GetPublicKeySECP256K1 returns the public key associated with the address derived from the provided hdPath using the primary wallet

func (EvmosSECP256K1) SignSECP256K1

func (e EvmosSECP256K1) SignSECP256K1(hdPath []uint32, signDocBytes []byte) ([]byte, error)

SignSECP256K1 returns the signature bytes generated from signing a transaction using the EIP712 signature.

type Secp256k1DerivationFn

type Secp256k1DerivationFn func() (sdkledger.SECP256K1, error)

Secp256k1DerivationFn defines the derivation function used on the Cosmos SDK Keyring.

func EvermintLedgerDerivation

func EvermintLedgerDerivation() Secp256k1DerivationFn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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