BLAKE3 Hash Precompile
Native EVM precompile for the BLAKE3 cryptographic hash function (parallelizable, tree-based, single-pass).
Abstract
BLAKE3 is a parallel, tree-based cryptographic hash function (O'Connor, Aumasson, Neves, Wilcox-O'Hearn 2020) providing single- pass hashing, parallelism via Merkle-tree internal structure, fixed 256-bit output (extendable to arbitrary length via XOF mode), and ~3-10x faster throughput than BLAKE2 / SHA-3 on modern x86_64 and ARM64. This LP pins the BLAKE3 precompile address, the input/output encoding, the gas-cost model (lower than SHA-256 per byte due to SIMD parallelism), and the keyed-mode / KDF-mode / XOF-mode extensions. BLAKE3 is the default cryptographic hash for non-consensus workloads — block-store chunking, content-addressed storage, and high-throughput attestation pipelines. For consensus-critical hashing (block header, state root) use Keccak-256 (LP-4340) for EVM compatibility.
Reference implementation
- Primitive:
luxfi/crypto/hash/blake3(cgo wrapper around upstreamblake3C library) - Standards: BLAKE3 reference paper (2020), GitHub
BLAKE3-team/BLAKE3 - Modes: hash, keyed_hash, derive_key, extendable-output (XOF)
Copyright
Copyright and related rights waived via CC0.