Pontes settlement connector: an ERC-7573 application walkthrough
The Pontes settlement connector is an application of ERC-7573 for delivery-versus-payment (DvP) between on-chain assets and payments in Pontes. The on-chain payment contract exposes the cash leg to asset contracts; this standalone Java application provides the participant-operated off-chain connector. It handles authorized payment requests and returns authenticated outcomes through participant oracle proxies. Cash remains in the external system.
The architecture is described by Christian P. Fries, Peter Kohl-Landgraf, and Raphael Prandtl, Participant-Operated Settlement Connectors for Digital Assets (2026, SSRN 7534098). It separates the payment contract, participant oracle proxies, and external-system connectors. The earlier DvP paper explains the conditional key-release method.
How the application uses ERC-7573
An asset contract locks an asset against success and failure keys. The payment contract uses ERC-7573 oracle requests and callbacks to coordinate the external cash leg. Each participant's connector handles its authorized requests:
| ERC-7573 operation | Pontes connector behavior |
|---|---|
| Generate key references | Create the Pontes XvP transaction and return signed references and hashes for the success and failure keys. |
| Verify key references | Authenticate both outcome references and their common settlement context without releasing a key. |
| Decrypt / release a key | Process authorized payment execution or cancellation, reconcile its outcome, and return the corresponding key once the outcome is confirmed so the asset contract can deliver or return the asset. |
The connector uses ERC-7573's portable key references to represent Pontes settlement outcomes. Its references are signed data; the outcome keys remain undisclosed until authorized release. The decryption-oracle documentation introduces the shared request/fulfillment interfaces. Compatible payment contracts and participant proxies are deployed separately from this application. Optional direct payments use a separate workflow from the ERC-7573 XvP flow described here.
The following steps show how oracle-bridge YAML configures the application, with Pontes-specific authorization and payment rules implemented by Java services.
1. Separate configuration from payment rules
| Part | Responsibility |
|---|---|
| Oracle-bridge | Listening, finality, event-to-service-to-callback orchestration, cursors, and durable callback submission. |
| Pontes OpenAPI document | Endpoint paths, parameters, operation IDs, and payload schemas; Maven generates the client locally. |
| Connector protocol services | Authorization, signing, exact transaction/amount checks, complex ABI, and payment reconciliation. |
The application generates its API client locally and compiles its protocol services and transaction codec from its own sources. See the implementation and API specification. Deploy compatible on-chain payment contracts and participant proxies separately from this Java application.
2. Configure three YAML layers
| File | What to configure |
|---|---|
| application-demo.yaml / application-example.yaml | Base URL, credentials references, chain/contracts, state paths, API operation bindings, and bridge resources. |
| xvp.yaml / direct-payment.yaml | Event, request, call, fulfillment, and completion stages. |
| pontes.yaml | The bundled, pinned OpenAPI contract used for local API generation. |
For example, the application configuration selects the workflow and service deployment:
pontes:
api:
specification: classpath:pontes.yaml
version: '1.1'
sha256: 78ca3952ca19709f896e871fc94bcb3d4e3dde4414ea7f94bbf1bfd071309517
operations:
create-xvp: RTGSCreateXvP
get-xvp: RTGSGetXvP
execute-payment: RTGSPayment
get-payment: RTGSGetPaymentStatus
direct-payment: submitDirectRTGSPayment
get-direct-payment: getDirectRTGSPaymentById
bridges:
participant: classpath:pontes-yaml/xvp.yaml
direct-payment: classpath:pontes-yaml/direct-payment.yaml
adapter:
base-url: http://127.0.0.1:8081
ncb: EXAMPLE
The complete file also supplies signer and state settings under pontes.adapter.
The API document supplies the
operation paths and schemas. Its version, checksum, and supported bindings are checked at
startup; adopting a new schema also requires compatible generated code and protocol tests.
3. Compose an event-to-payment bridge
The generation action is:
actions:
- id: pontes-generation
event: {handler: pontes.generation.event}
request: {handler: pontes.generation.request}
call: {handler: pontes.generation.execute}
fulfillment: {handler: pontes.generation.fulfill}
completion: {handler: pontes.generation.complete}
These names select registered functions, not Java classes. The application registers local
protocol functions in BridgeComponents and calls
BridgeConfiguration.load(...).createBridges(...). The YAML creates the actual bridges
used by the listener. See PontesYamlBridges.java for the small framework boundary.
The three XvP actions handle generation, verification, and decryption events. The YAML list does not execute them in sequence. Execution and cancellation share one topic and action; the frozen authorized request selects the operation. Optional direct payments have a separate workflow/listener.
Java components remain appropriate for tuple/array ABI, signatures, authorization, exact completion evidence, and payment recovery. They pass typed requests and results directly. The example validates matching handler families and preserves the default source-log operation identity. Invalid handlers fail before listener startup.
4. Build and try the offline example
Use JDK 21 or later and Maven access to oracle-bridge 2.1.4 and the declared libraries. The connector keeps its own Java and Spring Boot dependencies and inherits shared publication settings from the repository parent. Build from the checkout, skipping release signing for this local example:
./mvnw -f pontes-settlement-connector/pom.xml -Dgpg.skip=true verify
java -jar pontes-settlement-connector/target/finmath-pontes-settlement-connector-4.0.2-SNAPSHOT-exec.jar \
--spring.config.location=file:pontes-settlement-connector/config/application-demo.yaml
Maven generates the API client from the bundled specification and runs the connector tests.
The application reports three configured actions and six API operation bindings, then exits.
It opens demo journals under target/pontes-demo-state, but contacts no RPC or Pontes service
and submits no payments. This demonstrates configuration/startup; it does not deploy contracts
or perform a live settlement.
Execute the protocol itself with simulated Pontes/RPC responses using:
./mvnw -f pontes-settlement-connector/pom.xml -Dtest=PontesYamlWalkthroughTest test
The walkthrough test runs create → verify → payment → restart through the actual YAML-created bridges, generated client, signed references, raw response capture, and file journals. It checks exactly one create POST and one payment POST, then recovers the callback after restarting the stores. Responses and the payment signature are fixtures; this runs without live Pontes or chain connectivity.
To edit the workflow without rebuilding the JAR, add:
--pontes.bridges.participant=file:pontes-settlement-connector/src/main/resources/pontes-yaml/xvp.yaml
The introduction includes a configuration exercise and explains how to connect the registered functions to a different external system.
5. Connect a participant and retain recovery
Use application-example.yaml with compatible deployed contracts, RPC endpoints, participant authentication/mTLS, an authorized EVM signer, a payment signing key, and persistent state paths. Preserve existing cursor/journal data and signer ownership during migration.
A payment may settle even when its HTTP response is lost. The connector journals the external
operation and reconciles uncertainty without ordinary replay issuing another POST.
Oracle-bridge separately persists pending on-chain callbacks. Selecting a generic YAML HTTP
call with replaySafe: true does not implement those payment rules.
Direct payments keep their own source contract, cursor, and journal. Retrying asset delivery after settlement must not create another cash instruction. The reference covers connected settings, durable state, and tests. The release status distinguishes verified local builds from publication and live deployment.
