Versions in this module Expand all Collapse all v0 v0.1.1 May 25, 2022 v0.1.0 May 25, 2022 Changes in this version + const AmountDecimalPoint + const DefaultConfigAccountAliasesDirName + const DefaultPassphrase + const HashLength + const Secp256k1PrivateKeyBytesLength + var ACAlphabet = base58.NewAlphabet("123456789ABCDEFGHJKLMNPQRSWUVTXYZabcdefghijkmnopqrswuvtxyz") + var DebugGRPC = false + var DebugTransaction = false + var DefaultConfigDirName = ".tronctl" + var EmptyString = &hexError + var ErrBadKeyLength = errors.New("Invalid private key (wrong length)") + var ErrFoundNoPass = errors.New("found no passphrase file") + var ErrNotAbsPath = errors.New("keypath is not absolute path") + func Bytes2Hex(d []byte) string + func BytesToHexString(bytes []byte) string + func CopyBytes(b []byte) (copiedBytes []byte) + func Decode(input string) ([]byte, error) + func DecodeCheck(input string) ([]byte, error) + func EnableAllVerbose() + func Encode(input []byte) string + func EncodeCheck(input []byte) string + func FromHex(s string) ([]byte, error) + func Has0xPrefix(str string) bool + func Hex2Bytes(str string) ([]byte, error) + func Hex2BytesFixed(str string, flen int) []byte + func HexStringToBytes(input string) ([]byte, error) + func JSONPrettyFormat(in string) string + func LeftPadBytes(slice []byte, l int) []byte + func RightPadBytes(slice []byte, l int) []byte + func ToHex(b []byte) string + func ToHexArray(b [][]byte) []string + func ToJSONUnsafe(payload interface{}, pretty bool) string + func TrimLeftZeroes(s []byte) []byte + type Hash [HashLength]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func HexToHash(s string) (Hash, error) + func (h *Hash) SetBytes(b []byte) + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Hex() string + func (h Hash) String() string + func (h Hash) TerminalString() string