Files
zeekayandHanzo Dev e8d2f5bdf0 Pin the derivation, the call data, and the wallet a claim names
The derivation is pinned rather than described, because both live subject
shapes reach it and the natural key is the whole reason the rendering exists.
Injectivity is asserted over real subjects rather than argued: two people must
never derive one identifier, and the claim rests on the alphabets not
overlapping.

The chain leg is exercised against a stub node, because what has to be right —
the call data, the signature, the order — needs no block. The four selectors
are pinned against an independent keccak implementation over the same
signatures, so a change to a signature string is a red test rather than a
silent revert. The dynamic-tuple layouts are pinned byte for byte: an offset
computed from the wrong base still produces well-formed call data.

Raw transactions are DECODED and re-verified rather than compared to what the
encoder was handed. The test carries a small RLP list reader for exactly that
reason — the assertion is over the bytes a node would parse, and the signer is
recovered from a rebuilt EIP-155 payload, which is the only thing the
registry's access control actually sees.

The claims are read off a token minted through the real confidential flow, not
a hand-built Identity: resolving them in identityOf is what makes every mint
path carry them, and only a real mint proves it. UserInfo is checked to agree
with the token, and then to DISAGREE with a stale one — a wallet unlinked a
minute ago stops counting immediately, which is why it reads the store rather
than echoing the claim.

The unlink tests pin the fault that was live: the last-credential rule counted
"does this account have a wallet", so an account whose only credential was one
wallet read that wallet as proof removing it was safe. Beside it, the arm that
keeps the fix honest — a second wallet IS another way in, so that unlink is
permitted.

The anchor-off tests exist because "optional" has to mean the link path is
indistinguishable with it off, or every deployment that has not configured a
registry is running a second, untested path.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-04 00:58:41 -07:00
..