package
1.0.0
Repository: https://github.com/fractalplatform/fractal.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BigToAddress returns Address with byte values of b.
BigToHash sets byte representation of b to hash.
BigToName returns Name with byte values of b.
Bytes2Hex returns the hexadecimal encoding of d.
BytesToAddress returns Address with value b.
BytesToHash sets b to hash.
BytesToName returns Name with value b.
BytesToPubKey returns PubKey with value b.
CopyBytes returns an exact copy of the provided bytes.
FindStringSubmatch return segment.
FromHex returns the bytes represented by the hexadecimal string s.
Get256 returns an initialized SHA3-256 hash ready to use.
Get512 returns an initialized SHA3-512 hash ready to use.
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.
HexToPubKey returns PubKey with byte values of s.
IsHexAddress verifies whether a string can represent a valid hex-encoded address or not.
IsHexPubKey verifies whether a string can represent a valid hex-encoded PubKey or not.
LeftPadBytes zero-pads slice to the left up to length l.
MerkleRoot return merkle tree root hash.
No description provided by the author
NewMixedcaseAddress constructor (mainly for testing).
NewMixedcaseAddressFromString is mainly meant for unit-testing.
Now returns the current absolute monotonic time.
Put256 resets h and puts it in the freelist.
Put512 resets h and puts it in the freelist.
RightPadBytes zero-pads slice to the right up to length l.
StrToName returns Name with string of s.
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.

# Constants

No description provided by the author
AddressLength of addresses in bytes.
No description provided by the author
HashLength of hashes in bytes.
PubKeyLength of PubKey in bytes.
No description provided by the author

# 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.
EmptyPubKey empty.
ErrGasLimitReached is returned by the gas pool if the amount of gas required by a transaction is higher than what's left in the block.

# Structs

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

# Interfaces

No description provided by the author

# Type aliases

AbsTime represents absolute monotonic time.
Address represents the 20 byte address of an account.
No description provided by the author
GasPool tracks the amount of gas available during execution of the transactions in a block.
Hash represents the 32 byte Keccak256 hash of arbitrary data.
Name represents the account name.
PrettyDuration is a pretty printed version of a time.Duration value that cuts the unnecessary precision off from the formatted textual representation.
PubKey represents the 64 byte public key.
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.