package
0.7.2
Repository: https://github.com/nethermindeth/starknet.go.git
Documentation: pkg.go.dev

# Functions

All returns true if all elements match the given predicate.
BigIntArrToFeltArr converts an array of big.Int objects to an array of Felt objects.
BigIntToFelt converts a big integer to a felt.Felt.
BigToHex converts a big integer to its hexadecimal representation.
ByteArrFeltToString converts array of Felts to string.
BytesToBig converts a byte slice to a big.Int.
ComputeFact computes the factorial of a given number.
FeltArrToBigIntArr converts an array of Felt objects to an array of big.Int objects.
FeltToBigInt converts a Felt value to a *big.Int.
No description provided by the author
No description provided by the author
FmtKecBytes formats the given big.Int as a byte slice (Keccak hash) with a specified length.
GetSelectorFromName generates a selector from a given function name.
GetSelectorFromNameFelt returns a *felt.Felt based on the given function name.
HexArrToBNArr converts a hexadecimal string array to a *big.Int array.
HexArrToFelt converts an array of hexadecimal strings to an array of felt objects.
HexToBN converts a hexadecimal string to a big.Int.
HexToBytes converts a hexadecimal string to a byte slice.
HexToFelt converts a hexadecimal string to a *felt.Felt object.
HexToShortStr converts a hexadecimal string to a short string (Starknet) representation.
Keccak256 returns the Keccak-256 hash of the input data.
No description provided by the author
MaskBits masks (excess) bits in a slice of bytes based on the given mask and wordSize.
NewKeccakState returns a new instance of KeccakState.
SNValToBN converts a given string to a *big.Int by checking if the string contains "0x" prefix.
SplitFactStr splits a given fact string into two parts (felts): fact_low and fact_high.
StringToByteArrFelt converts string to array of Felt objects.
StrToBig generates a *big.Int from a string representation.
TestHexArrToFelt generates a slice of *felt.Felt from a slice of strings representing hexadecimal values.
TestHexToFelt generates a felt.Felt from a hexadecimal string.
Uint64ToFelt generates a new *felt.Felt from a given uint64 number.
No description provided by the author
UTF8StrToBig converts a UTF-8 string to a big integer.

# Variables

Just a random felt variable to use when needed.

# Interfaces

KeccakState wraps sha3.state.