Crate stacksat128

Source
Expand description

§STACKSAT-128

A 256-bit sponge hash specifically tailored for Bitcoin-Script friendliness. Only 4-bit additions (mod 16), a 16-entry S-box and fixed stack shuffles are required. No XOR, rotate, multiply, CAT, etc.

• State : 64 × 4-bit nibbles (256 bit) • Rate : 32 nibbles (128 bit) • Rounds : 16

Security target: >=128-bit collision & pre-image resistance.

The design is an SPN: S-box -> Permute (RowRot+Transpose) -> Mix (Col Adds v3) -> Const.

Functions§

stacksat_hash
Compute STACKSAT-128 hash of input message bytes; returns 32-byte digest.