Normative · Transport binding
SOVM-IROH — the iroh binding
The requirement keywords and the encoding rules are the specification’s conventions; shared vocabulary is terminology.
1. What a binding is and what this one binds
Section titled “1. What a binding is and what this one binds”A transport binding maps message semantics onto a wire. This one binds SSP/1’s message semantics — the capability handshake, the sync exchange, realtime mode — and SOP/1’s object transfer onto iroh (informative: iroh.computer), whose connections are QUIC (RFC 9000) between endpoints addressed by public key.
A binding MUST satisfy the five-row contract of transport §24, and MUST document how it does. This table is that statement:
| Requirement | How this binding meets it |
|---|---|
| Confidentiality | QUIC’s TLS 1.3 handshake; every stream is encrypted between the two endpoints, and a relay forwards ciphertext it cannot read (section 7) |
| Integrity | TLS 1.3 record protection; a tampered packet fails authenticated decryption |
| Peer authentication | Raw-public-key channel keys (section 3), after which trust resumption applies verbatim |
| Framing | One request-response exchange per bidirectional stream; realtime bodies on unidirectional streams (section 4); the pairing and share ceremonies each on one stream of its own ALPN (section 11.3, section 12.3) |
| Version negotiation | In-band, per messages §30; the ALPN versions the binding format only (section 2) |
2. ALPN
Section titled “2. ALPN”The ALPN string is sovm/0.
The /0 versions the binding’s wire format — the framing and stream
mapping of section 4 — and nothing else. The
protocol’s version story is ssp_version, carried in-band in every message
(messages §30), and it is deliberately
not this string: transport §23
records why — a protocol whose entire version story lives in a transport
identifier has made a change of transport a change of protocol version.
The distinction, stated once so it cannot be unread: a binding-format
revision bumps the ALPN; a protocol revision never does.
An endpoint MAY offer multiple ALPNs while a binding-format migration is in
progress — sovm/0 alongside a successor — and QUIC’s ALPN selection resolves
the overlap. That is the ordinary iroh idiom for evolving a protocol’s wire
format, and it migrates the framing, never the protocol.
A second ALPN, sovm/pair/0, carries the pairing ceremony and nothing else,
and an endpoint offers it only while a pairing window is open
(section 11).
A third ALPN, sovm/share/0, carries the share ceremony and nothing else, and
an endpoint offers it only while a share window is open
(section 12). The two ceremony ALPNs never share a window.
3. Connection and identity
Section titled “3. Connection and identity”The iroh endpoint identity — the NodeId — is the 32-byte Ed25519 channel key of the default binding profile. Same bytes, same role: iroh authenticates its endpoints with exactly the raw-public-key shape the profile specifies, so this binding introduces no second transport identity and no mapping between two. This is the asymmetry the signature profile names deliberately: the channel key stays Ed25519 under an ES256 specification precisely because that is the format the transport ecosystem, iroh included, actually carries.
The channel key is not the node identity, and a connection is not trusted
until it resolves to one. On connection establishment, each side MUST present
a valid transport binding record (sovm/ssp-binding-v1,
transport §28) resolving its
channel key to a site_id, as the first frame on the first stream it opens
in each direction. Trust resumption
then applies verbatim: an unknown channel key, an absent or invalid binding
record, a binding chain that has forked, or a site_id that does not resolve as a currently trusted
peer (identity §20.4) is a hard fail — close the connection with TRUST_FAILED
(section 9), and never fall back to a pairing prompt.
4. Streams and framing
Section titled “4. Streams and framing”One request-response exchange per bidirectional stream. The requester opens the stream and sends one frame; the responder sends one frame and closes the stream. That is transport §24’s framing row met literally: the stream is the exchange, and stream closure is the response boundary.
The exceptions are the two ceremonies. The pairing ceremony on sovm/pair/0
runs on a single stream, carrying three frames each way and then the join
record, in the same framing (section 11.3). The
share ceremony on sovm/share/0 does the same, with one anchor frame each way
in place of the join record (section 12.3).
Realtime mode’s unsolicited one-way bodies are unidirectional streams, opened by either peer on the held connection. A peer that did not negotiate realtime MUST NOT open one, and a receiver on a session where the capability was not mutually established MUST reset the stream and surface the event — reject, not drop, exactly as messages §33 requires.
A frame is a 4-byte big-endian unsigned length prefix followed by the
message’s deterministic-CBOR bytes. A receiver MUST bound the frame length it
accepts — the bound is implementation-chosen and declared per
limits §37 — and MUST fail
closed on a frame exceeding it, closing with FRAME_TOO_LARGE. The
liberal-parsing bound applies to
the CBOR inside the frame, not to the length discipline: a hostile length is
a transport error, not a malformed body.
A sender MUST pad every frame with Padmé
(the substrate’s one function), at the frame level:
the CBOR body is padded to a Padmé bucket and the length prefix states the
padded length. That is how this binding meets
transport §27, and it covers every frame, the
binding record and the handshake included. A receiver MUST check the length
prefix against its bound first and then for padding, both before it reads the
body: a length that is not a Padmé target fails closed, closing with
FRAME_NOT_PADDED. The CBOR encoding is self-delimiting, so the trailing pad
bytes are unambiguous, and a receiver MUST ignore bytes after the CBOR item
within a frame. Padding hides sizes, not timing.
5. Object transfer
Section titled “5. Object transfer”SOP/1 objects move over iroh-blobs. storage_id is the iroh-blobs BLAKE3
hash of the exact encrypted object bytes —
SOP/1 §11.7 defines it and
§20.2 states the consequence; this page cites
both and restates neither. Verified streaming, download resumption and
verified range transfer are inherited from iroh-blobs, for exactly the reason
the identity is shared: the transfer verifies against the same hash the
protocol names.
Those properties belong to iroh-blobs’ bao-verified interfaces and not to every
read it offers. The crate also exposes an unvalidated range read, and the
seekable AsyncRead + AsyncSeek reader — the interface a Parquet reader is most
naturally handed — is built on that one. Bytes obtained through it carry no
binding to storage_id, so corruption of the local store after a verified
download is invisible.
SOP/1 §11.10 forbids reading object bytes
through such an interface, and for this binding that resolves to a concrete
split: the verified size probe, the bao-verified ranged get on the network leg,
and the bao-verified local range export satisfy it; the unvalidated range export
and anything built over it do not. An implementation that needs a seekable
reader builds one over the verified export. This page names which interfaces
meet the requirement; the requirement is SOP/1’s and is not restated or amended
here.
Tickets — a serialized node address plus hash — are a convenience an
implementation MAY exchange to save a discovery round trip. The protocol
identifier is storage_id alone, and a ticket MUST NOT be treated as an
authorization: holding one proves nothing about entitlement, which is
the AccessRecord’s job,
and a receiver enforces the access rules regardless of how it learned the
address.
6. Control plane
Section titled “6. Control plane”The object plane’s MLS control messages travel as ordinary request frames on this binding, inside the thin routing wrapper of SOP/1 §10.3: a destination routing token, a message kind of opaque-mls, and the opaque MLS bytes. The binding routes the wrapper and learns nothing from its contents — no group, no epoch, no message type.
7. Relay and mailbox are different roles
Section titled “7. Relay and mailbox are different roles”An iroh relay forwards live encrypted traffic between peers that are online at the same time and cannot reach each other directly. It holds nothing at rest. It MUST NOT be presented as satisfying the mailbox contract: the durability and retention-bound rows are obligations a live forwarder cannot meet, and a deployment that labels its relay a mailbox has promised store-and-forward it does not perform. Both roles remain (SOP/1 §20.4); a mesh that needs asynchronous delivery runs a mailbox as well as a relay, not instead of one.
A relay operator sees routing metadata: which channel keys talk to which, when, and how much. That is the same position transport §26 states for the mailbox operator, and it is stated here just as plainly rather than left to be inferred. Padding bounds what sizes reveal; it does not touch timing or correlation.
8. Discovery
Section titled “8. Discovery”An implementation MAY use iroh’s discovery mechanisms — DNS, pkarr, local mDNS — to resolve a NodeId to network addresses. None of them is normative, and a conforming implementation may use static addressing and nothing else.
What discovery publishes is worth naming: the mapping from a long-lived channel key to current network locations and a home relay is presence metadata, visible to whichever infrastructure serves the lookup. A deployment that must not leak presence uses static addressing or a private discovery service. Choosing between them is a deployment policy, not a protocol member.
9. Error codes
Section titled “9. Error codes”Connection closes use QUIC application close codes from the table below. The names are registered in the registry as wire-visible values.
| Code | Name | Meaning |
|---|---|---|
0x01 |
PROTOCOL_VIOLATION |
A stream or frame violated section 4: wrong stream type, a second request on a stream, a body that is not a CBOR item |
0x02 |
TRUST_FAILED |
The trust resumption hard fail: unknown channel key, absent or invalid binding record, a forked binding chain, or a site_id that is unresolvable or resolves only to a verification-only row |
0x03 |
FRAME_TOO_LARGE |
A length prefix exceeded the receiver’s declared bound |
0x04 |
UNSUPPORTED_BINDING_VERSION |
No mutually supported binding wire format |
0x05 |
FRAME_NOT_PADDED |
A length prefix within the receiver’s bound that is not a Padmé target (section 4) |
A receiver of an unknown close code MUST surface it and treat the connection as closed. It MUST NOT retry-loop on it: an unknown code is a condition the peer named and this implementation cannot interpret, and reconnecting into it converts one surfaced error into a flood.
10. Decision gates
Section titled “10. Decision gates”Three gates, all closed. They are the same kind of gate as the realtime module’s — stated here, versioned with this page, and not part of the status page’s gate index. A corpus case cites those gates, never these.
GI1 interoperability two independent nodes complete a sync exchange over a direct path and over a relay, with byte-identical outcomes
GI2 object identity the storage_id returned by iroh-blobs equals the spec-derived BLAKE3 over the exact encrypted bytes, on import and on fetch
GI3 revocation a revoked node's connection hard-fails at trust resumption on the next establishment attempt, with TRUST_FAILED observable| Gate | State | Verdict |
|---|---|---|
| GI1 interoperability | closed | verdict |
| GI2 object identity | closed | verdict |
| GI3 revocation | closed | verdict |
Each verdict names the commit and the run its gate closed on, the tests that carry each clause, and what an outsider can and cannot reproduce today.
What closed GI2 and GI3, and how strong that evidence is. Both were demonstrated by two nodes, each with its own state directory, keyring and identity, running as separate processes on one host. Neither gate’s text asks for more: neither carries an independence clause, and both name properties two such nodes exhibit completely. A gate closes when its own text is satisfied, not when a sibling’s evidence catches up.
GI2 closed on an equality whose two halves have different provenance — one derived by iroh-blobs inside the transfer plane, the other by hashing the encrypted bytes directly, with no iroh-blobs in the call — asserted on the fetching node as well as on the importing one, and paired with a fetch of an object no one holds. An equality that asks iroh-blobs for both of its halves is a store agreeing with itself and closes nothing.
GI3 closed on both sides of the same establishment: the dialling node observed
TRUST_FAILED and the refusing node reported the trust failure, after a
successful establishment between that same pair had first been demonstrated
and then revoked. A peer that was never trusted proves nothing here, and a
connection that dropped for some other reason satisfies neither side.
What closed GI1, and what it cost to say so. The byte-identity clause is exercised by a run in which topology rather than a flag chose the carriage: one dataset, a direct leg to a peer with no relay configured at all, a relayed leg to a peer on a network with no route to the author, and the two legs’ materialized outcomes compared against each other and required to match rather than each merely being required to converge. Two discriminators are held beside it, one per plane, each failing on the shape it exists for, and the isolation the relayed leg rests on carries a falsifier of its own: a witness holding an interface on both networks reads the route as present, so a leg that passes because the isolation silently lapsed is separated from a leg that passes because the relay carried it.
Independent is read here as the clause’s own falsification target, not as a count of kernels. The word is in the gate to exclude what a single-process exchange fakes — one address space, one store serving both roles, one keypair standing in for two identities, and a loopback path no relay ever sees. Two containers on separate networks remove all four and force the relay by routing. The residual is one shared kernel, and therefore one clock and one network stack: real clock skew on the hybrid-logical-clock path and real path characteristics — MTU, address translation, loss, reordering — are not demonstrated by this evidence. Neither is a clause of GI1, whose byte-identity comparison is between the direct leg and the relayed leg rather than between two hosts. A two-host run would strengthen the record and is not required to close the gate; reading independent as reaching the clock would instead narrow a transport gate onto a property it does not name.
The gate closes on a named executed run, never on a pipeline’s colour. The container roster’s job step can decline to run — a wedged container daemon is a fact about the host, not about the change — and a declined run must not be counted as a passing one. The closing evidence is a single job in which the whole roster executed and every test in it passed, recorded by run identity rather than inferred from a green build. The roster remains subject to host-class faults that withdraw its evidence without contradicting it; such a run is not adverse and is not a closure either.
With all three gates closed, a stack carrying this binding is no longer a
prototype of it. SOVM-IROH remains a claim like every other on
the conformance page: an implementation states it
by satisfying the mapping and the published vectors, and the gates having
closed removes the reservation on the binding, not the burden on the
implementation.
11. Pairing
Section titled “11. Pairing”SSP/1 identity §20 admits a node to a mesh by a
ceremony between two nodes that do not trust each other yet. That ceremony
cannot run on sovm/0, where an unknown channel key is a hard fail
(section 3). It runs on a second ALPN,
sovm/pair/0, which carries nothing else. This section maps the ceremony onto
that ALPN. The messages, the state machine and the keyring row the ceremony ends
in are SSP/1’s, and nothing here changes them.
The /0 versions this ALPN’s wire format, as in section 2: the
frames and their order on the stream.
11.1. The window
Section titled “11.1. The window”The enroller is the node already in the mesh. It offers sovm/pair/0 only
while a pairing window is open. Its person opens the window, and the window
holds one ceremony. It closes when that ceremony reaches paired or aborted,
or when the ceremony deadline
passes, whichever comes first. The deadline is fixed when the window opens, so
it covers the wait for a candidate as well as the ceremony.
- While no window is open, an endpoint MUST NOT offer
sovm/pair/0in its TLS handshake. A dialer then fails ALPN negotiation. - An endpoint MUST close a connection on
sovm/pair/0before reading any frame from it when no window is open, or when the window’s one ceremony is already running with another candidate. This holds even where an endpoint cannot withdraw an ALPN after binding. It also covers the moment before an endpoint that can withdraw one has done so. - One window carries one ceremony. A second ceremony needs a new window and a new invite ticket, because an aborted ceremony is never retried in place (identity §20.3).
Nothing on sovm/pair/0 is reachable from sovm/0. An unknown channel key on
sovm/0 is still TRUST_FAILED, and it never becomes a pairing prompt.
11.2. The invite ticket
Section titled “11.2. The invite ticket”The candidate is the node that joins. It learns where to dial from an invite ticket, which the enroller shows its person while the window is open. The ticket is a deterministic-CBOR map:
InviteTicket = { node_id : bstr 32 the enroller's channel key (section 3) addresses : [* tstr] socket addresses, as text ? relay_url : tstr a relay URL}A person copies the ticket as unpadded base32 of that CBOR (RFC 4648 §6), written in lower case. A reader drops surrounding whitespace and accepts either case, and forgives nothing else. A decoder MUST refuse a member other than these three, and any bytes that are not the map’s deterministic encoding.
node_idpins the candidate’s connection. QUIC authenticates the channel key, so the candidate reaches the endpoint that showed the ticket, or nobody.addressesandrelay_urlare dial hints. An enroller setsrelay_urlonly to a relay it is reachable through, taken from its own relay configuration, and otherwise leaves it out.
The ticket carries no root key, no commitment and no mesh_id. Because the
decoder refuses a fourth member, no ticket can carry one. Like the object
tickets of section 5, an invite ticket authorizes
nothing: it says where to dial. What admits a node is its person comparing the
digits.
11.3. The ceremony stream
Section titled “11.3. The ceremony stream”The candidate dials the ticket on sovm/pair/0 and opens one bidirectional
stream. The whole ceremony runs on that stream: three frames each way, then the
join record (section 11.4). This departs from
section 4’s one exchange per stream. The ceremony has
no requester and no responder. Both sides send every message, and the state
machine orders them, so here the stream is the ceremony, as in section 4 the
stream is the exchange.
Each side sends the three identity §20.1 messages in the order identity §20.3 releases them:
PairingCommitment.PairingOffer, only once it holds the peer’s commitment.PairingTranscriptSignature.
The frames are section 4’s: a 4-byte length prefix and Padmé padding. Every field of the three messages is fixed-width, so each message has exactly one encoded length, and therefore exactly one frame length:
| Message | Frame body length |
|---|---|
PairingCommitment |
48 bytes |
PairingOffer |
144 bytes |
PairingTranscriptSignature |
72 bytes |
A receiver MUST accept only that length prefix for each message, so it reads at most 144 bytes of any of these frames from a peer nobody has authenticated yet. On any other prefix it closes the connection:
- with
FRAME_TOO_LARGEwhen the prefix is above the message’s length; - with
FRAME_NOT_PADDEDwhen it is not a Padmé target; - with
PROTOCOL_VIOLATIONfor any other length.
A message that identity §20.1 rejects also
closes with PROTOCOL_VIOLATION. Every read runs under the ceremony deadline,
so a peer that stalls between frames costs the window its remaining time and
nothing more.
Once both transcript signatures verify, each side shows its person the digits (identity §20.2) and waits for a verdict. A verdict given before the digits were shown compared nothing, and is discarded. A mismatch aborts.
11.4. The join record
Section titled “11.4. The join record”After the enroller’s person confirms the digits, the enroller sends one more frame on the stream: the join record. It is how the candidate learns which mesh it is joining. It is a deterministic-CBOR map:
JoinRecord = { mesh_id : bstr 16 eventkey : bstr the enroller's current sovm/ssp-eventkey-v1 record ? authority : [+ bstr] sovm/ssp-authority-v1 links, genesis to head sig : bstr 64 ES256 over "sovm-pair-join-v1" || T || mesh_id}T is the ceremony’s transcript
(identity §20.1), so the record answers
for one ceremony and one mesh, and cannot be replayed into another of either. Each eventkey and authority item is the record’s exact
bytes, as they verify. authority is absent while the mesh has no
admission authority. When present it
holds at least one link: an empty array would be a second encoding of “no
chain”, and a decoder MUST refuse it.
sig is made under the enroller’s
event-signing subkey, never under
its root. The root signs only the transcript. The subkey’s chain back to the
root is the eventkey record, which the candidate checks here and checks again
on every sovm/0 connection, so a second root signature would add nothing.
The join record’s length is not fixed. Its frame is bounded as section 4 bounds any frame, and it arrives only from a peer the digits have just authenticated.
The candidate makes four checks, in this order, on every join. The first that fails refuses the record:
mesh_idis 16 bytes, and re-derives undersovm-mesh-id-v1(terminology) from theik_pubthat the ceremony authenticated as the enroller’s. This check reads nothing from a chain, so it runs whether or notauthorityis present.eventkeyverifies under that root, for thatmesh_id.sigverifies under the subkey that check 2 verified.- When
authorityis present, each link verifies in order frommesh_idalone, by the admission authority’s own verification order. The genesis link’s signer is the enroller of check 1.
A candidate MUST adopt a mesh_id only from a join record that passes all four
checks. When a check refuses the record, the candidate closes the connection.
The ceremony then aborts after authenticated and before paired, and nothing
has been written.
11.5. How the ceremony ends
Section titled “11.5. How the ceremony ends”When the candidate accepts the join record, it finishes its side of the stream,
sending nothing more on it. The enroller waits for that end of stream, then
closes the connection with application code 0x00, which is QUIC’s “no error”.
Each side then appends the peer to its trusted-peer keyring
(identity §20.4).
The peer’s channel key, as this connection authenticated it, is a dial hint and
nothing more. Only the peer’s binding record, on its first sovm/0 connection,
binds that key to a site_id (section 3).
A ceremony that ends any other way closes the connection. Where a frame broke a
rule that has a section 9 code, the close uses that code, as
in section 11.3. Otherwise it closes with 0x00:
the deadline passed, a person reported a mismatch, or a join record was
refused. No section 9 code names a side that stopped. A connection
refused at accept (section 11.1) closes with 0x00 too. The
reason phrase on each close is there for a person reading a capture, and carries
no meaning.
An aborted ceremony is final. The only retry is a new window, a new invite ticket, and a fresh ephemeral key and nonce (identity §20.3).
12. Sharing
Section titled “12. Sharing”A share link joins two meshes for
one share, and it is created by a ceremony in the shape of pairing between one
node of each. That ceremony runs on a third ALPN, sovm/share/0, which carries
nothing else. Up to authenticated it is section 11’s ceremony,
unchanged. After authenticated, no join record is sent: each side sends one
anchor frame and reads the other’s. Neither side adopts a mesh_id, and
neither appends to its keyring. What the ceremony leaves is the material of one
link anchor on each side, which
scope §15.9 keeps out of both
keyrings. This section maps the ceremony onto that ALPN, and nothing here changes
SSP/1.
The /0 versions this ALPN’s wire format, as in section 2: the
frames and their order on the stream.
12.1. The window
Section titled “12.1. The window”The sharer is the node whose person shares, and the recipient is the node
whose person receives. The sharer offers sovm/share/0 only while a share
window is open. The window follows every rule of
section 11.1, with the share window in place of the pairing
window and sovm/share/0 in place of sovm/pair/0:
- While no share window is open, an endpoint MUST NOT offer
sovm/share/0in its TLS handshake. - An endpoint MUST close a connection on
sovm/share/0before reading any frame from it when no share window is open, or when the window’s one ceremony is already running with another recipient. - One window carries one ceremony, and a second ceremony needs a new window and a new share code.
The two ceremony windows are never shared. A share window offers
sovm/share/0 and not sovm/pair/0, and a pairing window offers sovm/pair/0
and not sovm/share/0. Each ALPN has its own window, and opening, running or
closing one leaves the other as it was. Nothing on
sovm/share/0 is reachable from sovm/0: an unknown channel key on sovm/0 is
still TRUST_FAILED.
12.2. The share code
Section titled “12.2. The share code”The share code is the invite ticket of
section 11.2, unchanged: the same three members, the
same text form and the same decoder, which refuses a fourth member. The sharer
shows it while its share window is open, and the recipient dials it on
sovm/share/0.
So the share code carries no share_id, no mesh_id and no root key. Those
cross in the anchor frames, after the digits have authenticated both roots
(section 12.4). Like an invite ticket, a share code
authorizes nothing: it says where to dial.
12.3. The ceremony stream
Section titled “12.3. The ceremony stream”The recipient dials the share code on sovm/share/0 and opens one
bidirectional stream, and the whole ceremony runs on it. Up to authenticated,
everything is section 11.3’s: the three
identity §20.1 messages each way, on the
same identity §20.3 state machine
and in the same order, each at its one frame length, with the same close codes,
under the same ceremony deadline, followed by the digits compared
(identity §20.2).
After its own person has confirmed the digits, each side sends its anchor frame and then reads the peer’s. Both sides send before they read, so neither waits on the other’s person before its own frame leaves. The join record of section 11.4 is never sent on this ALPN, and a frame of its shape is refused (section 12.5).
12.4. The anchor frame
Section titled “12.4. The anchor frame”The anchor frame is what one side tells the other about itself. It is a deterministic-CBOR map:
ShareAnchor = { mesh_id : bstr 16 the sender's mesh ? share_id : bstr 16 the share; on the sharer's frame only addresses : [* tstr] the sender's static dial addresses, as text ? relay_url : tstr a relay the sender names for this link binding : bstr the sender's current sovm/ssp-binding-v1 record eventkey : bstr the sender's current sovm/ssp-eventkey-v1 record ? kemkey : bstr the recipient's sovm/sop-kemkey-v1 record; on the recipient's frame only sig : bstr 64 ES256 over "sovm-share-anchor-v1" || T || the map without sig}addressesare socket addresses, each written in the one text form a socket address is written in. A decoder refuses any other spelling of an address, so one address has one encoding. The array is empty when the sender is reachable only through a relay, and thenrelay_urlnames that relay.bindingis the sender’s own current transport binding record, signed under its ownmesh_idas external AAD: the same bytes its own mesh sees, and not a second record minted for the link.binding,eventkeyandkemkeyare each the record’s exact bytes, as they verify.
The members are not symmetric. share_id appears on the sharer’s frame
only, and the recipient’s frame never carries it. kemkey appears on the
recipient’s frame only, and only when that node has a sovm/sop-kemkey-v1
record. A sharer’s frame that carries kemkey is refused. A recipient’s
kemkey is verified under the recipient’s root, with the frame’s mesh_id as
external AAD.
sig is ES256 over the label sovm-share-anchor-v1, then T, then the frame’s
map without sig, in its deterministic encoding. T is the ceremony’s
transcript (identity §20.1), so the frame
answers for one ceremony and cannot be replayed into another. The label
separates the frame’s signature from every other signature the same key makes,
a join record’s included.
sig is made under the sender’s
event-signing subkey, never under
its root, for the reason section 11.4 gives for the join
record: the root signs only the transcript, and the subkey’s chain back to the
root is the eventkey record the frame carries.
The anchor frame’s length is not fixed. Its frame is bounded as
section 4 bounds any frame, and it arrives only from a
peer the digits have just authenticated. A receiver closes the connection with
FRAME_TOO_LARGE when the length prefix is above its bound, with
FRAME_NOT_PADDED when the prefix is not a Padmé target, and with
PROTOCOL_VIOLATION when the body is not one CBOR item.
12.5. What the node checks
Section titled “12.5. What the node checks”sovm-iroh carries the anchor frame opaque. It frames and reads the bytes
and judges nothing in them. The node verifies the frame, as it verifies a
join record (section 11.4).
Every check runs on every frame against two keys: the peer’s root, as the digits authenticated it, and the peer’s channel key, as QUIC authenticated it for this connection (section 3).
Before any check, the frame must decode. A receiver MUST refuse a frame that is
not the deterministic encoding of exactly the members above, that lacks a
required member or carries another, that has a member of the wrong type, or a
mesh_id, share_id or sig of the wrong width. A join record has
authority and lacks addresses and binding, so a frame of the join
record’s shape fails here, before check 1. The crossing is refused the other way
too: an anchor frame offered on sovm/pair/0 in a join record’s place fails
the join record’s checks.
Then the node makes five checks, in this order. The first that fails refuses the frame:
eventkeyverifies under the peer’s root, for the frame’smesh_id.sigverifies under the subkey that check 1 verified.bindingverifies under the peer’s root, with the frame’smesh_idas external AAD, and itschannel_pubequals the connection’s channel key.kemkey: on the sharer’s frame, its presence refuses the frame. On the recipient’s frame, when present, it is asovm/sop-kemkey-v1record that verifies under the peer’s root, with the frame’smesh_idas external AAD.share_idis present on the sharer’s frame and absent on the recipient’s.
A frame that passes all five is the material of a link anchor: the peer’s root
and site_id, its mesh_id, its dial hints, and the binding record whose
generation the link starts from. Because check 3 tied the binding record to this
connection under the authenticated root, the channel key the ceremony saw is
bound to the peer’s site_id here, and is no longer only the dial hint that
section 11.5 makes it after pairing. A verified
frame is still not a trusted peer. Nothing in it is written to a keyring, and it
satisfies no predicate of identity §20.4
(scope §15.9).
12.6. How the ceremony ends
Section titled “12.6. How the ceremony ends”A side that accepts the peer’s anchor frame finishes its side of the stream, sending nothing more on it. So the end of the peer’s stream, with nothing after its frame, is the peer’s acceptance of this side’s frame. A side is linked only once it has accepted the peer’s frame and has read the end of the peer’s stream, so each side is linked only when both sides accepted.
The sharer then waits until the recipient has acknowledged the end of the
sharer’s stream, and closes the connection with application code 0x00. A
close sent before that acknowledgement could discard the end of stream, and the
recipient would read a close where its link was. The recipient waits for the
sharer’s close. Neither side then writes to its keyring. The link anchor is the
node’s to store (scope §15.9).
A side that refuses the peer’s frame, or whose ceremony fails in any other way,
resets its side of the stream with the code it closes the connection with, so its
failure never reads as an end of stream. The peer reads the reset, or the close,
as a refusal of its own frame. The close codes are
section 11.5’s: a section 9 code
where a frame broke a rule that has one, and 0x00 otherwise, including when a
check of section 12.5 refused the frame. As there,
the reason phrase carries no meaning.
An aborted share ceremony is final. The only retry is a new share window, a new share code, and a fresh ephemeral key and nonce (identity §20.3).
13. What this document does not do
Section titled “13. What this document does not do”- It does not amend SSP/1 or SOP/1. Every sentence of transport, messages and SOP/1 §20 stays exactly where it is. This page maps them onto a wire and points back.
- It does not make iroh mandatory. Transport §23 requires a mesh to run at least one transport role; this binding is one way of meeting that, and another binding satisfying transport §24 may exist beside it or instead of it.
- It does not define a mailbox. Section 7 is explicit that a relay is not one, and nothing on this page satisfies the mailbox contract.
- It does not choose discovery. Section 8 permits mechanisms and names their cost; it makes none of them normative.