Crate drillx_2

Crate drillx_2 

Source

Re-exports§

pub use equix;

Structs§

Hash
The result of a drillx hash
Solution
A drillx solution which can be efficiently validated on-chain

Enums§

DrillxError

Functions§

difficulty
Returns the number of leading zeros on a 32 byte buffer.
get_hashes_with_memory
Generates drillx hashes from a challenge and nonce using pre-allocated memory.
hash
Generates a new drillx hash from a challenge and nonce.
hash_with_memory
Generates a new drillx hash from a challenge and nonce using pre-allocated memory.
hashv
Calculates a hash from the provided digest and nonce. The digest is sorted prior to hashing to prevent malleability.
is_valid_digest
Returns true if the digest if valid equihash construction from the challenge and nonce.
seed
Concatenates a challenge and a nonce into a single buffer.