package
0.0.0-20231025030425-6ec8c495a25d
Repository: https://github.com/hpb-project/go-hpb.git
Documentation: pkg.go.dev

# Packages

Package bitutil implements fast bitwise operations.
Package compiler wraps the Solidity compiler executable (solc).
No description provided by the author
No description provided by the author
No description provided by the author
Package hexutil implements hex encoding with 0x prefix.
Package log15 provides an opinionated, simple toolkit for best-practice logging that is both human and machine readable.
Package math provides integer math utilities.
package mclock is a wrapper for a monotonic clock source.
Package metrics provides general system and process level metrics collection.
No description provided by the author
Package rlp implements the RLP serialization format.
Package trie implements Merkle Patricia Tries.

# Functions

No description provided by the author
BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
No description provided by the author
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
No description provided by the author
Copy bytes Returns an exact copy of the provided bytes.
No description provided by the author
No description provided by the author
Fowler–Noll–Vo is a non-cryptographic hash function created by Glenn Fowler, Landon Curt Noll, and Kiem-Phong Vo.The basis of the FNV hash algorithm was taken from an idea sent as reviewer comments to theIEEE POSIX P1003.2 committee by Glenn Fowler and Phong Vo in 1991.
No description provided by the author
No description provided by the author
No description provided by the author
HexToAddress returns Address with byte values of s.
HexToHash sets byte representation of s to hash.
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
LoadJSON reads the given file and unmarshals its content.
MakeName creates a node name that follows the hpb convention for such names.
NewMixedcaseAddress constructor (mainly for testing).
NewMixedcaseAddressFromString is mainly meant for unit-testing.
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TrimLeftZeroes returns a subslice of s without leading zeroes.
TrimRightZeroes returns a subslice of s without trailing zeroes.

# 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.

# Structs

MixedcaseAddress retains the original string, which may or may not be correctly checksummed.

# Type aliases

Address represents the 20 byte address of an Ethereum account.
No description provided by the author
Hash represents the 32 byte Keccak256 hash of arbitrary data.
PrettyDuration is a pretty printed version of a time.Duration value that cuts the unnecessary precision off from the formatted textual representation.
No description provided by the author
UnprefixedAddress allows marshaling an Address without 0x prefix.
UnprefixedHash allows marshaling a Hash without 0x prefix.