Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HashLength is the expected length of the hash HashLength = 32 // AddressLength is the expected length of the address AddressLength = 21 // AddressLengthBase58 is the expected length of the address in base58format AddressLengthBase58 = 34 // TronBytePrefix is the hex prefix to address TronBytePrefix = byte(0x41) )
Variables ¶
View Source
var (
ZeroAddress = "410000000000000000000000000000000000000000"
)
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address []byte
Address represents the 21 byte address of an Tron account.
func Base58ToAddress ¶
Base58ToAddress returns Address with byte values of s.
func Hex2Address ¶
HexToAddress returns Address with byte values of s. If s is larger than len(h), s will be cropped from the left.
func PubkeyToAddress ¶
PubkeyToAddress returns address from ecdsa public key
Click to show internal directories.
Click to hide internal directories.