# Packages
Package bitutil implements fast bitwise operations.
Package compiler wraps the Solidity compiler executable (solc).
No description provided by the author
Package hexutil implements hex encoding with 0x prefix.
Package math provides integer math utilities.
Package mclock is a wrapper for a monotonic clock source.
No description provided by the author
# Functions
AbsolutePath returns datadir + filename, or filename if it is absolute.
BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
Bytes2Hex returns the hexadecimal encoding of d.
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
CopyBytes returns an exact copy of the provided bytes.
FileExist checks if a file exists at filePath.
FromHex returns the bytes represented by the hexadecimal string s.
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
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
IsHexAddress verifies whether a string can represent a valid hex-encoded Ethereum address or not.
No description provided by the author
LeftPadBytes zero-pads slice to the left up to length l.
LoadJSON reads the given file and unmarshals its content.
MakeName creates a node name that follows the ethereum convention for such names.
NewMixedcaseAddress constructor (mainly for testing).
NewMixedcaseAddressFromString is mainly meant for unit-testing.
NewTestTransactions creates a slice which include test transactions.
PrintDepricationWarning prinst the given string in a box using fmt.Println.
Report gives off a warning requesting the user to submit an issue to the github tracker.
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.
No description provided by the author
# Constants
AddressLength is the expected length of the address.
HashLength is the expected length of the hash.
# Variables
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
Common big integers often used.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
locked 180days.
locked 30days.
locked 90days.
locked 360days.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
account record value of mortgaging.
One day block height.
One week block height.
2019.7.22 inb by ghy end
.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
vote.
Mortgage,unMortgage,change vote.
2019.7.22 inb by ghy begin.
2019.7.22 inb by ghy begin.
# Structs
MixedcaseAddress retains the original string, which may or may not be correctly checksummed.
No description provided by the author
No description provided by the author
# Type aliases
Address represents the 20 byte address of an Ethereum account.
Hash represents the 32 byte Keccak256 hash of arbitrary data.
PrettyAge is a pretty printed version of a time.Duration value that rounds the values up to a single most significant unit, days/weeks/years included.
PrettyDuration is a pretty printed version of a time.Duration value that cuts the unnecessary precision off from the formatted textual representation.
StorageSize is a wrapper around a float value that supports user friendly formatting.
UnprefixedAddress allows marshaling an Address without 0x prefix.
UnprefixedHash allows marshaling a Hash without 0x prefix.