Crate hashx

Source
Expand description

§hashx

hashx: Rust reimplementation of tevador’s HashX ASIC-resistant hash function

This is an ASIC-resistant hash function designed by tevador as a lightweight variant of RandomX’s SuperscalarHash, optimized for Tor’s client puzzle use case. Check out tevador’s dev log for more information.

This is for Tor client puzzle support in Arti. (#889)

Structs§

HashX
Pre-built hash program that can be rapidly computed with different inputs
HashXBuilder
Builder for creating HashX instances with custom settings
SipRand
HashX-style random number generator built on SipHash1,3
SipState
Internal state of one SipHash instance

Enums§

CompilerError
Details about a compiler error
Error
Errors that could occur while building a hash function
Runtime
Effective HashX runtime for a constructed program
RuntimeOption
Option for selecting a HashX runtime