Versioning
Nothing signed is ever reinterpreted. Each layer carries its version where a verifier reads it first, and a change ships alongside the old version rather than replacing it.
Binary messages
The version is the suffix of the type tag: IM/HOLD/1, IM/VOUCHER/1, IM/RECEIPT/1. Version 1 layouts are frozen. They are exact-length, so they cannot gain trailing fields; a new layout is a new tag with its own length, dispatched by decodeAny / decode_any next to the old one.
Applications may define their own frames with the wire-extensions helpers and authenticate them under a pinned signer and domain. An extension can never claim a standard tag, two registered extensions may not share a tag (decodeAny rejects the frame with Tag), and an extension is never a payable voucher: the program accepts only IM/VOUCHER/1.
JSON documents
Listings and price schedules carry "v": 1. A settlement release recommendation carries "kind": "im.settlement-release.v1". The SDK tolerates unknown optional members (A34), and every verifier checks signatures over the exact document received.
Accounts
Every account stores version: u8 right after its discriminator. The current layout is ACCOUNT_VERSION 2; version 1 was the layout before accounts could be closed. Every instruction rejects an account of any other version with InvalidVersion.
Program
- Encodings are permanent (A34). An instruction's discriminator and argument encoding never change in place. A breaking change ships as a new instruction or discriminator; the old one is removed only after an announced deprecation window with no remaining users.
- A successor gets a new address (ADR 0004). A new program version is installed at a distinct program id. Only an explicit buyer choice puts new funds there; existing channels keep settling on the program that holds them. Because the program id is half of every message's domain, a voucher for one deployment can never be redeemed by another.
- The IDL is tracked (A23).
programs/idl/im_channels.jsonis regenerated on every program change, andprograms/scripts/regen-idl.sh --checkfails when it differs from a fresh regeneration. Clients test against the tracked copy.
| Deployed program | Value |
|---|---|
| Program id | 2grG8aUKE1HRjE8FqG4h5C2tmfAUG7PLsS8yL4nKrjdW |
| Cluster | devnet |
| Source commit | f58d497 |
| Executable | 494,320 bytes, sha256 fbe605e0ac61cd4a796a8b6fb4cecace7589fe274359a16ee1791114f242c280 |
| Tracked IDL | im_channels 0.1.0, address 2grG8aUKE1HRjE8FqG4h5C2tmfAUG7PLsS8yL4nKrjdW |
<sub>Generated from programs/idl/deployed/RELEASE, programs/idl/im_channels.json.</sub>
Settlement release recommendations
A buyer chooses which program to fund. A publisher the buyer configured out of band may recommend a release with a signed JSON document (ADR 0005); it recommends, it never moves money.
| Member | Rule |
|---|---|
kind |
"im.settlement-release.v1" |
sequence |
positive integer, strictly increasing across replacements; gaps allowed |
issued_at, expires_at |
Unix seconds; valid while issued_at ≤ now < expires_at, for at most 86,400 seconds |
genesis_hash, mint, program_id |
base58 of 32 bytes; genesis and mint must match the buyer's configuration |
program_data_sha256 |
lowercase hex SHA-256 of the installed program data, padding included, without its 45-byte header |
idl_sha256 |
lowercase hex SHA-256 of the IDL in canonical protocol JSON |
The document is at most 4,096 bytes, has exactly these members, and is signed like any other protocol JSON. The buyer approves a specific digest, SHA256(jcs(doc)), not "the latest". A missing or stale recommendation never blocks settling old receipts, vouchers, refunds or withdrawals.