package
0.0.0-20210301081109-a173fca9e8fd
Repository: https://github.com/drep-project/drep-chain.git
Documentation: pkg.go.dev
# Packages
Package bitutil implements fast bitwise operations.
Package bloombits implements bloom filtering on batches of data.
No description provided by the author
Package event deals with subscriptions to real-time events.
No description provided by the author
Package hexutil implements hex encoding with 0x prefix.
No description provided by the author
Package math provides integer math utilities.
Package mclock is a wrapper for a monotonic clock source.
No description provided by the author
No description provided by the author
Package trie implements Merkle Patricia Tries.
# Functions
No description provided by the author
AppDataDir returns an operating system specific directory to be used for storing application data for an application.
No description provided by the author
Bytes2Hex returns the hexadecimal encoding of d.
No description provided by the author
CopyBytes returns an exact copy of the provided bytes.
Decode decodes a hex string with 0x prefix.
DecodeBig decodes a hex string with 0x prefix as a quantity.
DecodeUint64 decodes a hex string with 0x prefix as a quantity.
Encode encodes b as a hex string with 0x prefix.
EncodeBig encodes bigint as a hex string with 0x prefix.
EncodeUint64 encodes i as a hex string with 0x prefix.
Expands a file path 1.
FileExist checks if a file exists at filePath.
FromHex returns the bytes represented by the hexadecimal string s.
No description provided by the author
No description provided by the author
No description provided by the author
GlobalBig returns the value of a BigFlag from the global flag set.
GlobalTextMarshaler returns the value of a TextMarshalerFlag from the global flag set.
hasHexPrefix validates str begins with '0x' or '0X'.
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
No description provided by the author
isHex validates whether each byte is valid hexadecimal string.
isHexCharacter returns bool of c being a valid hexadecimal.
LeftPadBytes zero-pads slice to the left up to length l.
MustDecode decodes a hex string with 0x prefix.
MustDecodeBig decodes a hex string with 0x prefix as a quantity.
MustDecodeUint64 decodes a hex string with 0x prefix as a quantity.
MustParseUint64 parses s as an integer and panics if the string is invalid.
No description provided by the author
ParseUint64 parses s as an integer in decimal or hexadecimal syntax.
RightPadBytes zero-pads slice to the right up to length l.
SafeAdd returns the result and whether overflow occurred.
SafeMul returns multiplication result and whether overflow occurred.
SafeSub returns subtraction result and whether overflow occurred.
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.
No description provided by the author
UnmarshalFixedJSON decodes the input as a string with 0x prefix.
UnmarshalFixedText decodes the input as a string with 0x prefix.
UnmarshalFixedUnprefixedText decodes the input as a string with optional 0x prefix.
# Constants
No description provided by the author
No description provided by the author
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
No description provided by the author
# Variables
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
No description provided by the author
No description provided by the author
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
Errors.
No description provided by the author
# Structs
BigFlag is a command line flag that accepts 256 bit big integers in decimal or hexadecimal syntax.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Custom cli.Flag type which expand the received string to an absolute path.
Custom type which is registered in the flags library which cli uses for argument parsing.
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
No description provided by the author
TextMarshalerFlag wraps a TextMarshaler value.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
Big marshals/unmarshals as a JSON string with 0x prefix.
No description provided by the author
Bytes marshals/unmarshals as a JSON string with 0x prefix.
HexOrDecimal64 marshals uint64 as hex or decimal.
No description provided by the author
No description provided by the author
StorageSize is a wrapper around a float value that supports user friendly formatting.
Uint marshals/unmarshals as a JSON string with 0x prefix.
Uint64 marshals/unmarshals as a JSON string with 0x prefix.