utils

package
v0.0.0-...-de16a70 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(cmd *cobra.Command, name string, value interface{}, usage string, required bool)

func CheckErr

func CheckErr(err error)

CheckErr prints the msg with the prefix 'Error:' and exits with error code 1. If the msg is nil, it does nothing.

func DecryptEthPrivateKey

func DecryptEthPrivateKey(tronKeyValue, tronPwdValue string) (*ecdsa.PrivateKey, error)

func DecryptFxPrivateKey

func DecryptFxPrivateKey(fxKeyValue, fxPwdValue string) (*secp256k1.PrivKey, error)

func PathExists

func PathExists(path string) (bool, error)

func SilenceCmdErrors

func SilenceCmdErrors(cmd *cobra.Command)

func UpdateAddressPrefix

func UpdateAddressPrefix(prefix string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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