ethkeys

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0, Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBech32ToHex

func ConvertBech32ToHex(bech32Addr string) (hexAddr string, err error)

func ConvertBech32ToHexCmd

func ConvertBech32ToHexCmd() *cobra.Command

ConvertBech32ToHexCmd returns a command to convert a bech32 address to hex

func KeyCommands

func KeyCommands(ctx context.Context) *cobra.Command

KeyCommands registers a sub-tree of commands to interact with local private key storage.

func UnarmorDecryptPrivKey

func UnarmorDecryptPrivKey(
	armorStr string,
	passphrase string,
) (privKey cryptotypes.PrivKey, algo string, err error)

UnarmorDecryptPrivKey returns the privkey byte slice, a string of the algo type, and an error

func UnsafeExportEthereumKeyCommand

func UnsafeExportEthereumKeyCommand() *cobra.Command

UnsafeExportEthereumKeyCommand exports a key with the given name as a private key in hex format.

func UnsafeImportEthereumKeyCommand

func UnsafeImportEthereumKeyCommand() *cobra.Command

UnsafeImportEthereumKeyCommand imports private keys from a keyfile.

Types

This section is empty.

Jump to

Keyboard shortcuts

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