Drop #1741785
420
PART 6 of 7 — Profile V1.3 (toolkit a26e996) Short result: the TypeScript package computes no schema verdict and checks no record signature, so the token index is the only V1.3 rule both the Python checker and the TypeScript package compute; there they agree. No case found where the two give a record different subject IDs or hashes. V1.3 changes the validity of no record published under an earlier version. "Every new field is optional" holds, except inside the signature block, where the new members are required or refused by scheme (new schemes and the tightened jws / cose only). Run: the token key and token discovery of the Python checker and of the TypeScript package give the same output on 72 hard cases (mixed case, leading zeros, hex IDs, 2^256, look-alike characters, Counterparty names at the length cap, payloads of V1.0, V1.2 and V1.3). Run: the repo's own schema validator and Ajv 2020 agree on 196 values against the definitions of the PRVEVENTV1.3 schema. 6.1 One package gives two answers to "which token does this identifier name". (run) The token index lower-cases an ERC address and reads a counterparty identifier in every profile version (profile/tools/check.py:1263-1271; src/tokenIndex.ts:133-147; profile/docs/token-index.md:81-86, :102-103). The exports' join key takes each caip19 value as written and reads counterparty only under V1.3 (src/profileVersions.ts:77-97, used by src/recordCatalog.ts:387-393, src/lido.ts:592-595, src/linkedArt/index.ts:452, :881; docs/standards/linked-art.md:118-120). Run: a V1.2 entity with a mixed-case ERC-721 address gets the lower-case key in the index and the as-written key in the exports, so the exports do not join it with the same token written in lower case. A V1.2 entity with {"scheme":"counterparty","value":"RAREPEPE"} is in the index under counterparty:RAREPEPE and names no token in the exports. Each page matches its own code, and the two say opposite things about a V1.2 counterparty identifier: docs/standards/linked-art.md:118-123 cites token-index.md for another case but does not say that the index reads that identifier, and token-index.md does not mention the exports. 6.2 "One token has one form" (profile/docs/README.md:78) holds for ERC-20/721/1155 and Counterparty only. (run) A token in any other CAIP-19 namespace is keyed as written (token-index.md:93 says so). The consequence is not stated: eip155:1/erc6909:0x…/01 and …/1 (also in mixed and lower case) both pass the V1.3 schema and are two index keys for one token; by the same rule a Tezos FA2 token ID 0042 and 42 are two keys. The V1.3 schemas are frozen, so a tighter rule needs a later version; a sentence in the docs can come now. 6.3 A near-miss ERC reference passes V1.3 and silently names no token. (run) eip155:1/ERC721:0x…/771769 (upper-case asset namespace) in an about[].ref passes the uriref rule, is refused only as a caip19 identifier, gets no TOKENID report (check.py:462-475) and no index key in either tool (check.py:1208; src/tokenIndex.ts:16-17). The migration table row at profile/docs/README.md:105 covers the mixed-case address, not this. 6.4 recognized_signers accepts an upper-case Bech32 address, which can never match a signature. (run) profile/docs/core.md:145-148 says signers match as exact strings and a Bech32 address "is written in lower case there". The V1.3 registry schema accepts bip122:…:BC1Q… in upper case, and no checker rule compares it with the lower-case form the bip137 / bip322 schemes need. Such a declaration is valid and recognises nobody. 6.5 Docs profile/docs/core.md:268-270 says "each winter runs to the end of the next February". src/edtfGroups.ts:26 reads code 32 (southern winter) as June to August, and docs/standards/linked-art.md:295-296 agrees with the code. The second season that runs into February is code 30, the southern summer. The migration table (profile/docs/README.md:101-117) has no row for the value form of jws and cose: V1.2 takes any string, V1.3 needs the detached form HEADER..SIGNATURE for jws and unpadded base64url for cose. A V1.2 value in another form still fails after the signer and key_id rows are followed.
