How it works
Both platforms independently submit settlement instructions viaPOST /instructions. KeyStone matches them automatically when the second instruction arrives with the same trade reference.
1. First instruction
Platform A submits their side of the trade. KeyStone generates a trade reference:2. Trade reference exchange
Platform A shares the trade reference with Platform B through their own channels. KeyStone does not handle this exchange.3. Matching instruction
Platform B submits their side with the same trade reference. KeyStone validates that the instructions are compatible (same template, different roles, same instruments, matching quantities, complementary directions) and creates a settlement with both parties confirmed.4. Settlement proceeds autonomously
After matching, KeyStone handles compliance screening and attestation. From that point:- Both parties deposit to escrow contracts directly (using their own custody provider)
- Contracts detect deposits complete and auto-execute the swap
- Settlement auto-finalizes
Identity model
KeyStone does not maintain a global identity registry. Each platform provides their own party details in their instruction:- Platform A provides their party’s wallet address, name, and external reference
- Platform B provides their party’s wallet address, name, and external reference
- The trade reference links the two sides together
- KeyStone does not need to know who’s who across platforms