Documentation ¶
Index ¶
- func BytesToUint64(v []byte) (uint64, error)
- func CheckRequiredFlag(cmd *cobra.Command, names ...string)
- func CopyFile(src, dst string) error
- func Ecrecover(hash, v, r, s []byte) ([]byte, error)
- func EcrecoverAddress(hash, v, r, s []byte) (common.Address, error)
- func ExternalIP() (string, error)
- func Keccak256(msg []byte) ([]byte, error)
- func PrvKeyToCryptoKey(prv *ecdsa.PrivateKey) crypto.PrivKey
- func SetEnvToViper(vp *viper.Viper, key string) []string
- func Sha256(msg []byte) []byte
- func TxHash(b []byte) []byte
- func Uint64ToBytes(u uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUint64 ¶
func CheckRequiredFlag ¶
func ExternalIP ¶
https://stackoverflow.com/questions/23558425/how-do-i-get-the-local-ip-address-in-go TODO there must be a better way to get external IP
func PrvKeyToCryptoKey ¶
func PrvKeyToCryptoKey(prv *ecdsa.PrivateKey) crypto.PrivKey
func Uint64ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.