Versions in this module Expand all Collapse all v0 v0.5.3 Jan 9, 2024 v0.5.2 Dec 6, 2023 Changes in this version + func Int2Hex(data string) (string, error) v0.5.1 Oct 8, 2023 Changes in this version + func NftData(data string) (string, string, error) v0.5.0 Aug 10, 2023 Changes in this version + const AddressLength + const AddressLengthBase58 + const HashLength + const Key + const LatestBlockFile + const LatestBlockPath + const NodeFile + const NodePath + const TronBytePrefix + var EmptyString = &hexError + 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 DeleteFile(path string) error + func Div(str string, pos int) string + func Encode(input []byte) string + func EncodeCheck(input []byte) string + func FromHex(s string) ([]byte, error) + func GetLocalNodeId(path string) (string, error) + func Has0xPrefix(str string) bool + func Hex2Address(hex string) (string, error) + func Hex2Address2(hex string) (string, error) + func Hex2Bytes(str string) ([]byte, error) + func Hex2BytesFixed(str string, flen int) []byte + func HexStringToBytes(input string) ([]byte, error) + func HexToInt(hex string) (string, error) + func HexToInt2(hex string) (int64, error) + func Keccak256(msg []byte) []byte + func LeftPadBytes(slice []byte, l int) []byte + func PathExists(path string) (bool, error) + func ReadLatestBlock() ([]byte, error) + func RightPadBytes(slice []byte, l int) []byte + func ToHex(b []byte) string + func ToHexArray(b [][]byte) []string + func TrimLeftZeroes(s []byte) []byte + func WriteLatestBlock(content string) error + type Address []byte + func Base58ToAddress(s string) (Address, error) + func Base64ToAddress(s string) (Address, error) + func BigToAddress(b *big.Int) Address + func HexToAddress(s string) Address + func PubkeyToAddress(p ecdsa.PublicKey) Address + func (a Address) Base58() string + func (a Address) Bytes() []byte + func (a Address) Hex() string + func (a Address) String() string + 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