# Packages

Package bitutil implements fast bitwise operations.
Package compiler wraps the Solidity and Vyper compiler executables (solc; vyper).
No description provided by the author
Package hexutil implements hex encoding with 0x prefix.
Package lru implements generically-typed LRU caches.
Package math provides integer math utilities.
Package mclock is a wrapper for a monotonic clock source.
Package prque implements a priority queue data structure supporting arbitrary value types and int64 priorities.

# Functions

AbsolutePath returns datadir + filename, or filename if it is absolute.
Big Shortcut for new(big.Int).SetString(..., 0).
Big copy Creates a copy of the given big integer.
No description provided by the author
Big max Returns the maximum size big integer.
Big min Returns the minimum size big integer.
Big pow Returns the power of two big integers.
BigToAddress returns Address with byte values of b.
Big to bytes Returns the bytes of a big integer with the size specified by **base** Attempts to pad the byte array with zeros.
BigToHash sets byte representation of b to hash.
No description provided by the author
No description provided by the author
Bytes2Hex returns the hexadecimal encoding of d.
No description provided by the author
BytesToAddress returns Address with value b.
BytesToBig.
BytesToHash sets b to hash.
No description provided by the author
CopyBytes returns an exact copy of the provided bytes.
FileExist checks if a file exists at filePath.
No description provided by the author
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.
No description provided by the author
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
IsHexAddress verifies whether a string can represent a valid hex-encoded Cortex address or not.
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 cortex convention for such names.
NewMixedcaseAddress constructor (mainly for testing).
NewMixedcaseAddressFromString is mainly meant for unit-testing.
ParseHexOrString tries to hexdecode b, but if the prefix is missing, it instead just returns the raw bytes.
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
TrimRightZeroes returns a subslice of s without trailing zeroes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

AddressLength is the expected length of the address.
HashLength is the expected length of the hash.
Lengths of hashes and addresses in bytes.
Lengths of hashes and addresses in bytes.

# 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.
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.
Common big integers often used.
EmptyAddress = HexToAddress("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421").
EmptyHash = HexToHash("56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421").
No description provided by the author
MaxAddress represents the maximum possible address value.
Common big integers often used.
MaxHash represents the maximum possible hash value.
Common big integers often used.

# Structs

MixedcaseAddress retains the original string, which may or may not be correctly checksummed.
No description provided by the author

# Type aliases

Address represents the 20 byte address of an Cortex account.
AddressEIP55 is an alias of Address with a customized json marshaller.
No description provided by the author
Hash represents the 32 byte Keccak256 hash of arbitrary data.
No description provided by the author
No description provided by the author
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.