Interface: CantonVerifyContext
Defined in: packages/x402-core/src/types/facilitator.ts:65
What the CALLER resolves before a Canton exact payment can be verified. The mirror of extensions on the way out: facts in, facts out, both scheme-shaped.
Properties
payerPublicKeys
payerPublicKeys: readonly string[];Defined in: packages/x402-core/src/types/facilitator.ts:77
The payer party's PUBLIC signing keys, STANDARD base64 Ed25519 — not base64url, which is what a JWKS x is: most keys spell differently in the two, and an undecodable one is silently just a key that did not sign.
Read from the ledger by the caller, because the payload carries none and the payer is the transfer's sender (decodePayloadTransfer). A party may publish several and the payload does not say which signed, so any one verifying is the party verifying; none refuses the payment. Which one did verify comes back as extensions.signedBy.
registryParties?
registryParties?: Readonly<Record<string, readonly string[]>>;Defined in: packages/x402-core/src/types/facilitator.ts:109
The registry infrastructure parties trusted for each registrar, keyed by the registrar's party id (an instrument's instrumentId.admin). For the DA Registry Utility, that is its operator and the token's provider.
Spec Rule 7 trusts such a party only when the facilitator is configured with it for that registrar. So for a registry token (any instrument but Canton Coin), each signatory of the TransferRule the payment delivers through, the rule's own operator and provider, and each input holding's operator and provider must be the registrar itself or one of the parties listed for it. They are compared as a set, not by role: the list says who is trusted, not which field each one fills.
It is also what spec Rule 3's registry check reads. A registry token's transfer must exercise the receiver's own registry TransferPreapproval (Utility.Registry.App.V0.Model.TransferPreapproval), signed by payTo alone and naming payTo as receiver and the instrument's admin, for a registrar with an entry here. Otherwise verify answers invalid_exact_canton_malformed_payload with a factory_ detail: factory_not_preapproval when the payee has no preapproval at all, and factory_registry_unconfigured for a registrar with no entry, which this check reaches before the one above.
Optional, and OPT-IN. Leave it out (or pass undefined) and neither check runs, as before they existed: registry infrastructure parties and a registry token's factory are then not checked at all. Pass it — even {} — and it is authoritative: a registrar with no entry is one nobody configured, and its tokens are refused. So are they when the value is not an object at all, or when the registrar's entry is not a list; members of a list that are not strings are ignored. Canton Coin ignores the field.