{
  "schema_version": "1.0.0",
  "record_version": "1.0.0",
  "record_id": "dn-permit2-unordered-nonce-source-register",
  "source_review_date": "2026-12-03",
  "source_commit_date_utc": "2023-09-29T15:36:13Z",
  "chain_state_observed_at_utc": null,
  "deployment_match_verified": false,
  "sources": [
    {
      "id": "permit2-SignatureTransfer.sol",
      "evidence_type": "official_source_code",
      "repository_path": "src/SignatureTransfer.sol",
      "url": "https://github.com/Uniswap/permit2/blob/cc56ad0f3439c502c246fc5cfcc3db92bb8b7219/src/SignatureTransfer.sol",
      "source_review_date": "2026-12-03",
      "source_commit": "cc56ad0f3439c502c246fc5cfcc3db92bb8b7219",
      "git_blob_sha": "c026553aea0075e78594a78733684e8747b627d8",
      "sha256": "234effebbe1e7ad7a3c791ea2b411f8e90993b758479817eb32c8767ea62ee8d",
      "byte_length": 6546,
      "supports": [
        "bitmapPositions: upper 248 bits select word, lower eight select bit.",
        "invalidateUnorderedNonces ORs a caller-owned word with a mask.",
        "_useUnorderedNonce reverts when its selected bit was already set."
      ]
    },
    {
      "id": "permit2-ISignatureTransfer.sol",
      "evidence_type": "official_source_code",
      "repository_path": "src/interfaces/ISignatureTransfer.sol",
      "url": "https://github.com/Uniswap/permit2/blob/cc56ad0f3439c502c246fc5cfcc3db92bb8b7219/src/interfaces/ISignatureTransfer.sol",
      "source_review_date": "2026-12-03",
      "source_commit": "cc56ad0f3439c502c246fc5cfcc3db92bb8b7219",
      "git_blob_sha": "63297c3bbc32cddf4c9f570e10382f008c37f519",
      "sha256": "8e7f355d7751cf96e81069c17fb97a3ec973c9391fbbb58ad3fb6e75be5cb19b",
      "byte_length": 6875,
      "supports": [
        "Nonce and bitmap are uint256 values.",
        "The invalidation interface accepts wordPos and mask; derived valid-nonce word positions fit uint248."
      ]
    },
    {
      "id": "permit2-NonceBitmap.t.sol",
      "evidence_type": "official_source_code",
      "repository_path": "test/NonceBitmap.t.sol",
      "url": "https://github.com/Uniswap/permit2/blob/cc56ad0f3439c502c246fc5cfcc3db92bb8b7219/test/NonceBitmap.t.sol",
      "source_review_date": "2026-12-03",
      "source_commit": "cc56ad0f3439c502c246fc5cfcc3db92bb8b7219",
      "git_blob_sha": "f29d6fbe5a995522f9947ffccb41329dc7551ceb",
      "sha256": "3ce6c69c1027682a464c51f99189e79dee6e1d491c511ed50f4941bea51ea713",
      "byte_length": 4464,
      "supports": [
        "Upstream source tests include nonce 255/256 boundary, high nonces and repeated-OR idempotence.",
        "Reading these tests is not evidence that DN ran the Foundry suite."
      ]
    },
    {
      "id": "permit2-official-signature-transfer-docs",
      "evidence_type": "official_documentation",
      "url": "https://developers.uniswap.org/docs/protocols/permit2/concepts/signature-transfer",
      "source_review_date": "2026-12-03",
      "supports": [
        "Documents unordered nonce layout and contextual signature requirements."
      ],
      "scope_note": "Documentation is mutable. Implementation semantics are pinned separately. Its illustrative mapping uses uint248, whereas the pinned actual storage mapping and invalidation parameter use uint256; no blanket uint248 runtime bounds check is asserted."
    }
  ],
  "hash_interpretation": "Hashes establish byte identity of fetched source, not truth, deployment matching, runtime safety or authorisation.",
  "local_verification_scope": "Synthetic fixture arithmetic and browser-local UI behavior only; no upstream Foundry run, chain RPC, wallet connection, signature check or on-chain transaction.",
  "recheck_triggers": [
    "A different Permit2 source revision is proposed.",
    "A concrete deployment is to be evaluated.",
    "Input grammar or calculation semantics change."
  ]
}
