Documentation ¶
Index ¶
- func AddFlags(cmd *cobra.Command, name string, value interface{}, usage string, ...)
- func CheckErr(err error)
- func DecryptEthPrivateKey(tronKeyValue, tronPwdValue string) (*ecdsa.PrivateKey, error)
- func DecryptFxPrivateKey(fxKeyValue, fxPwdValue string) (*secp256k1.PrivKey, error)
- func PathExists(path string) (bool, error)
- func SilenceCmdErrors(cmd *cobra.Command)
- func UpdateAddressPrefix(prefix string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 PathExists ¶
func SilenceCmdErrors ¶
func UpdateAddressPrefix ¶
func UpdateAddressPrefix(prefix string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.