package
0.5.3
Repository: https://github.com/0xcregis/easynode.git
Documentation: pkg.go.dev

# Functions

Base58ToAddress returns Address with byte values of s.
Base64ToAddress returns Address with byte values of s.
BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
Bytes2Hex returns the hexadecimal encoding of d.
BytesToHash sets b to hash.
BytesToHexString encodes bytes as a hex string.
CopyBytes returns an exact copy of the provided bytes.
No description provided by the author
No description provided by the author
No description provided by the author
Div cut string to new string* eg: 1021,3->1.021 */.
No description provided by the author
No description provided by the author
FromHex returns the bytes represented by the hexadecimal string s.
No description provided by the author
Has0xPrefix validates str begins with '0x' or '0X'.
No description provided by the author
No description provided by the author
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
HexStringToBytes hex string as bytes.
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LeftPadBytes zero-pads slice to the left up to length l.
No description provided by the author
No description provided by the author
PubkeyToAddress returns address from ecdsa public key.
No description provided by the author
RightPadBytes zero-pads slice to the right up to length l.
ToHex returns the hex representation of b, prefixed with '0x'.
ToHexArray creates a array of hex-string based on []byte.
TrimLeftZeroes returns a subslice of s without leading zeroes.
No description provided by the author

# Constants

HashLength is the expected length of the hashHashLength = 32 AddressLength is the expected length of the address.
AddressLengthBase58 is the expected length of the address in base58format.
HashLength is the expected length of the hash.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TronBytePrefix is the hex prefix to address.

# Variables

No description provided by the author

# Type aliases

Address represents the 21 byte address of an Tron account.
Hash represents the 32 byte Keccak256 hash of arbitrary data.