Expand description
Representation and validation of Equi-X puzzle solutions
Equi-X uses its own tweaked version of the Equihash algorithm. Solutions
are arrays of SolutionItems, each representing one item in a space of
hash outputs. The SolutionItems form a binary tree with constraints
on the sorting order of the items and on the sums of their corresponding
hashes.
Structsยง
- Solution
- Potential solution to an EquiX puzzle
Constantsยง
- EQUIHASH_
K ๐ - Equihash K parameter for Equi-X, the number of tree layers
- EQUIHASH_
N ๐ - Equihash N parameter for Equi-X, number of bits used from the hash output
Functionsยง
- branches_
are_ ๐sorted - Ordering predicate for each node of the SolutionItem tree
- check_
all_ ๐tree_ sums - Check all tree sums, using the full size defined by
EQUIHASH_N. - check_
tree_ ๐order - Check tree ordering recursively.
- check_
tree_ ๐sums - Check hash sums recursively.
- item_
hash ๐ - Compute a
HashValuefrom aSolutionItem - sort_
into_ ๐tree_ order - Sort a solution in-place into tree order.
Type Aliasesยง
- Hash
Value ๐ - One hash value, computed from a
SolutionItem - Solution
Array - A bundle of solutions as returned by one invocation of the solver
- Solution
Byte Array - A byte array of the right length to convert to/from a
Solution - Solution
Item - One item in the solution
- Solution
Item Array - A raw Item array which may or may not be a well-formed
Solution