EVM-native memory-hard function primitive.
This repository contains:
contracts/LibMHF.sol: 3 MB Keccak-based memory-hard functioncontracts/MHFHarness.sol: thin harness for testing/integrationtest/LibMHF.t.sol: deterministic/sensitivity/gas sanity tests
- Purpose: increase concrete per-guess cost for offline dictionary attacks.
- No entropy amplification: low-entropy secrets remain dictionary-bound.
- This is a cost-throttling primitive, not a proof of sequential hardness.
forge testimport {LibMHF} from "evm-mhf/LibMHF.sol";
bytes32 mhtOut = LibMHF.compute(input, salt);