Crate packx
Source - Solution
- SOLUTION_SIZE
- deserialize
- Deserializes a byte array into a
Solution struct. - find_nonce
- Finds a nonce for a single chunk that produces a hash matching the target.
- serialize
- Serializes a
Solution struct into a byte array of length SOLUTION_SIZE. - solve
- Constructs a solution by finding nonces for all chunks, meeting the difficulty.
- solve_with_seed
- Constructs a solution for a group of chunks using a given seed and bump.
- unpack
- Reconstructs the data from the solution and public key.
- verify
- Verifies a solution against the provided public key, data, and difficulty.