docs(known-predicates): WalletStateAttestation reference predicate takes the issuer token directly - #29
Conversation
…plementation's proof The proof row for the 0x7a111640 kind now describes the reference implementation: hasAccess takes the issuer's compact JWT as data and reads the wallet, verdict, condition hash and expiry from its signed payload.
|
Thanks for keeping this in step with the reference predicate. I checked it against We've recreated the change in our internal monorepo, in this file and in the matching copy in opensea-skill, with you credited as co-author. This repo is a read-only mirror, so the update reaches it with the next tool-sdk release or sync. One small thing: the "Reference implementation" link in this section still points at douglasborthwick-crypto/insumer-examples, which now redirects to insumerapi/insumer-examples. It works as is, and we'll point it at the new path the next time this section changes. Closing this PR since the change now lives in the monorepo. Thanks again! |
Motivation
The proof row for the
0x7a111640kind inknown-predicates.mddoes not match the reference implementation it links to.Solution
Updates that row. The reference implementation's
hasAccesstakes the issuer's compact JWT asdata, unchanged, and reads the wallet, verdict, condition hash and expiry from its signed payload. The requirementkind, thegetRequirementslayout and the SDK decoder are unchanged. The advertisedconditionHashis the issuer's own 32-byte condition hash, soinspectprints a value an agent can match directly. The same section inProjectOpenSea/opensea-skillmirrors this file.Reference: https://github.com/douglasborthwick-crypto/insumer-examples/blob/main/InsumerAccessPredicate.sol