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 SolutionItem
s, each representing one item in a space of
hash outputs. The SolutionItem
s 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
HashValue
from 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