mirror of
https://github.com/luxfi/aml.git
synced 2026-09-24 00:25:20 +00:00
The test asserted that two domains mint different tokens, which the domain prefix guarantees on its own — so it passed with the per-domain key derivation removed and one key minting every domain. It now compares the mac behind the prefix, which is the thing the key schedule is responsible for. Found by mutating the HKDF info to a constant: the mutant survived, which is the only way to learn that a test passes for the wrong reason. Co-authored-by: Hanzo Dev <[email protected]>