{
  "tool_id": "art-749-solana-paychan-voucher-verifier",
  "note": "Golden vectors for the values-only Solana payment-channels voucher verifier (SOLANA-PAYCHAN-VOUCHER-VERIFIER-1). Wire constants re-verified at bytes against research/clause-snapshots/SOLANA-PAYCHAN-README-architecture-voucher-wire-3ffa4d67-2026-10-15.txt and SOLANA-PAYCHAN-SRC-voucher-verify-3ffa4d67-2026-10-15.txt (commit 3ffa4d6728ad88e4a9667a76ad9ccd68a302c696). human_sign_off: PENDING.",
  "vectors": [
    {
      "name": "valid",
      "policy_parameters": {
        "voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b2e8030000000000000000000000000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": true,
          "magic_is_56_01": true,
          "channel_id_matches_pda": true,
          "cumulative_within_deposit_ceiling": true,
          "cumulative_above_settled_watermark": true,
          "not_expired": true
        },
        "all_pass": true,
        "settle_delta": "600",
        "cumulative_amount": "1000",
        "expires_at": "0",
        "channel_id_hex": "4f6c64000000000000000000000000000000000000000000000000000000a1b2",
        "voucher": {
          "length": 50,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "a8db5dd911253b5356178dbbdaa4bcf240a527df0eed2ad6afa5a33c10e1a0be"
    },
    {
      "name": "expired",
      "policy_parameters": {
        "voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b2e803000000000000fff0536500000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": true,
          "magic_is_56_01": true,
          "channel_id_matches_pda": true,
          "cumulative_within_deposit_ceiling": true,
          "cumulative_above_settled_watermark": true,
          "not_expired": false
        },
        "all_pass": false,
        "settle_delta": "600",
        "cumulative_amount": "1000",
        "expires_at": "1699999999",
        "channel_id_hex": "4f6c64000000000000000000000000000000000000000000000000000000a1b2",
        "voucher": {
          "length": 50,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "ff49b06e9e57a20f58b5d1152b8cc94640ef0f9a9ecc2a783ab1e988e87a1f90"
    },
    {
      "name": "below-watermark",
      "policy_parameters": {
        "voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b290010000000000000000000000000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": true,
          "magic_is_56_01": true,
          "channel_id_matches_pda": true,
          "cumulative_within_deposit_ceiling": true,
          "cumulative_above_settled_watermark": false,
          "not_expired": true
        },
        "all_pass": false,
        "settle_delta": null,
        "cumulative_amount": "400",
        "expires_at": "0",
        "channel_id_hex": "4f6c64000000000000000000000000000000000000000000000000000000a1b2",
        "voucher": {
          "length": 50,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "d2a29d03f9150e88f81a5dd1d0e313e5d45c5541f1d2717eb769cecc3835f6a0"
    },
    {
      "name": "above-ceiling",
      "policy_parameters": {
        "voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b289130000000000000000000000000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": true,
          "magic_is_56_01": true,
          "channel_id_matches_pda": true,
          "cumulative_within_deposit_ceiling": false,
          "cumulative_above_settled_watermark": true,
          "not_expired": true
        },
        "all_pass": false,
        "settle_delta": "4601",
        "cumulative_amount": "5001",
        "expires_at": "0",
        "channel_id_hex": "4f6c64000000000000000000000000000000000000000000000000000000a1b2",
        "voucher": {
          "length": 50,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "3a7bc52d1c71d40e4f755f2935a75089e06f3506bee1493b96ebc8e7ca422bea"
    },
    {
      "name": "wrong-magic",
      "policy_parameters": {
        "voucher_hex": "57014f6c64000000000000000000000000000000000000000000000000000000a1b2e8030000000000000000000000000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": true,
          "magic_is_56_01": false,
          "channel_id_matches_pda": true,
          "cumulative_within_deposit_ceiling": true,
          "cumulative_above_settled_watermark": true,
          "not_expired": true
        },
        "all_pass": false,
        "settle_delta": "600",
        "cumulative_amount": "1000",
        "expires_at": "0",
        "channel_id_hex": "4f6c64000000000000000000000000000000000000000000000000000000a1b2",
        "voucher": {
          "length": 50,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "5759e048db2ee72d59c320e61179d8cc51eb71b6eb0fd1d87b94d56ceedd597e"
    },
    {
      "name": "wrong-length",
      "policy_parameters": {
        "voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b20000000000000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": false,
          "magic_is_56_01": false,
          "channel_id_matches_pda": false,
          "cumulative_within_deposit_ceiling": false,
          "cumulative_above_settled_watermark": false,
          "not_expired": false
        },
        "all_pass": false,
        "settle_delta": null,
        "cumulative_amount": null,
        "expires_at": null,
        "channel_id_hex": null,
        "voucher": {
          "length": 42,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "b3a970e464dd520b1ed35bec1a9d79ebf4e585621ccd816dc368e5c0844d6305"
    },
    {
      "name": "wrong-channel",
      "policy_parameters": {
        "voucher_hex": "560163646364636463646364636463646364636463646364636463646364636463646364636463646364636463646364636463646364636463646364636463646364e8030000000000000000000000000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": false,
          "magic_is_56_01": false,
          "channel_id_matches_pda": false,
          "cumulative_within_deposit_ceiling": false,
          "cumulative_above_settled_watermark": false,
          "not_expired": false
        },
        "all_pass": false,
        "settle_delta": null,
        "cumulative_amount": null,
        "expires_at": null,
        "channel_id_hex": null,
        "voucher": {
          "length": 82,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "db2bddd2598052f31ac788e9aa2fb62a51b26046281432ab67d775ffbeaba16a"
    },
    {
      "name": "superseded-second",
      "policy_parameters": {
        "voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b2e8030000000000000000000000000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000",
        "second_voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b284030000000000000000000000000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": true,
          "magic_is_56_01": true,
          "channel_id_matches_pda": true,
          "cumulative_within_deposit_ceiling": true,
          "cumulative_above_settled_watermark": true,
          "not_expired": true
        },
        "all_pass": true,
        "settle_delta": "600",
        "cumulative_amount": "1000",
        "expires_at": "0",
        "channel_id_hex": "4f6c64000000000000000000000000000000000000000000000000000000a1b2",
        "voucher": {
          "length": 50,
          "hex_prefix_stripped": true
        },
        "second_voucher": {
          "well_formed": true,
          "cumulative_amount": "900",
          "superseded_by_first": true,
          "second_cumulative_minus_first": "-100",
          "note": "the second voucher moves the watermark no further than the first and is superseded by it."
        },
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "e85391c5300c12ea9c621772a105407f8090e194fdd913b95de75ee7d965cb79"
    },
    {
      "name": "expired-zero-disabled-at-now-boundary",
      "policy_parameters": {
        "voucher_hex": "56014f6c64000000000000000000000000000000000000000000000000000000a1b2e80300000000000000f1536500000000",
        "channel_pda": "6M352GLFANFJcFhbVn9PCykxRUXtrmu25svGLgi86Wss",
        "deposit_ceiling": "5000",
        "settled_watermark": "400",
        "current_time": "1700000000"
      },
      "output_payload": {
        "checks": {
          "length_is_50": true,
          "magic_is_56_01": true,
          "channel_id_matches_pda": true,
          "cumulative_within_deposit_ceiling": true,
          "cumulative_above_settled_watermark": true,
          "not_expired": false
        },
        "all_pass": false,
        "settle_delta": "600",
        "cumulative_amount": "1000",
        "expires_at": "1700000000",
        "channel_id_hex": "4f6c64000000000000000000000000000000000000000000000000000000a1b2",
        "voucher": {
          "length": 50,
          "hex_prefix_stripped": true
        },
        "second_voucher": null,
        "pinned_constants": {
          "voucher_len": 50,
          "magic": [
            86,
            1
          ],
          "offsets": {
            "channel_id": 2,
            "cumulative_amount": 34,
            "expires_at": 42
          },
          "field_sizes": {
            "channel_id": 32,
            "cumulative_amount": 8,
            "expires_at": 8
          },
          "open_slot_window": 1500
        },
        "trusted_terms": {
          "deposit_ceiling": "5000",
          "settled_watermark": "400",
          "current_time": "1700000000",
          "mint": null,
          "authorized_signer": null
        },
        "out_of_scope": "the Ed25519 signature is NOT verified here (the authorized signer is a trusted claim) and nothing is read from chain",
        "note": "Checks mirror the program validator in its own order after the Ed25519 precompile has proven the signature: exact 50-byte layout, magic tag/version, channel-address binding, deposit cap, strictly monotonic watermark, expiry (0 disables). settle_delta is the amount a settle of this voucher would add to the channel."
      },
      "golden_hash": "012dd1d65ec664f2847a13a06f972d6da87c499bc1992e923c921e45abccd365"
    }
  ]
}
