SequenceHash: multihashing for the rest of us

Executive Summary

Trail of Bits introduces SequenceHash and SequenceMAC, flexible multihashing constructions that work with any secure hash function (e.g., SHA‑256/384/512, BLAKE, RIPEMD). They aim to prevent ambiguous input‑encoding attacks and simplify multihashing compared to NIST’s TupleHash. The open‑source spec is part of the Community Cryptography Specification Project (C2SP) and includes Rust, Go, and Python implementations plus test vectors.

Original Description

Multihashing is one of those cryptographic tasks that’s easy not to think about too much. This is unfortunate, because multihashing is a common stumbling point when cryptographers try to use hashes. As part of our goal to “fix software, not bugs,” Trail of Bits is introducing SequenceHash and its sister function SequenceMAC, a pair of related hash constructions that bring secure multihashing to developers using hash functions other than Keccak. We hope SequenceHash and SequenceMAC will help c...