package
0.0.0-20250119000602-809120120630
Repository: https://github.com/n42blockchain/n42.git
Documentation: pkg.go.dev

# Functions

CompressNibbles - supports only even number of nibbles This method supports only arrays of even nibbles HI_NIBBLE(b) = (b >> 4) & 0x0F LO_NIBBLE(b) = b & 0x0F.
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.
DecompressNibbles - supports only even number of nibbles HI_NIBBLE(b) = (b >> 4) & 0x0F LO_NIBBLE(b) = b & 0x0F.
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.
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.
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.

# Variables

# Type aliases

Big marshals/unmarshals as a JSON string with 0x prefix.
Bytes marshals/unmarshals as a JSON string with 0x prefix.
Uint marshals/unmarshals as a JSON string with 0x prefix.
Uint64 marshals/unmarshals as a JSON string with 0x prefix.