Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/TRANSPORT_V2_SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ dm_days = 30
| `nip44` | 14 (v2) | v2-capable clients only β€” the only mode from v0.19.0 |

**Capability discovery:** the node advertises its protocol in the kind
`38385` instance-info event with a `protocol_versions` tag (`"1"` or
`38385` instance-info event with a `protocol_version` tag (`"1"` or
`"2"`, derived from `transport`). Old clients ignore the unknown tag;
v2-capable clients check it and use the matching wire format β€” a client
implementation should keep both wrap paths (mostro-core ships both) to
Expand All @@ -151,7 +151,7 @@ with the clients that community uses.

- **v0.18.0** β€” protocol v2 ships. Default `transport = "gift-wrap"`
(nothing changes for existing clients). **Protocol v1 is DEPRECATED**:
announced in release notes, protocol docs and the `protocol_versions`
announced in release notes, protocol docs and the `protocol_version`
tag. Client developers have the 0.18.x cycle to ship v2.
- **v0.19.0** β€” protocol v2 becomes the default and only protocol.
Everything v1-related is removed from mostrod (gift-wrap path,
Expand Down Expand Up @@ -191,7 +191,7 @@ Minimal daemon integration; **zero handler changes** by design:
- `src/util.rs send_dm()` β€” wraps via `wrap_message_with(transport, …)`;
on the nip44 transport, fills a default NIP-40 expiration from `dm_days`
when the caller didn't pass one.
- `src/nip33.rs` β€” `protocol_versions` tag in the kind-38385 info event.
- `src/nip33.rs` β€” `protocol_version` tag in the kind-38385 info event.

### Phase 2 β€” anti-spam gates (DONE β€” this change; daemon-only, the payoff)

Expand Down Expand Up @@ -237,7 +237,7 @@ the gate sits entirely in the event-loop preamble.
`key_management.md` (v2 examples mirroring the existing unencrypted
gift-wrap walkthroughs), migration guide for client developers.
- mostro-cli / client support via the same mostro-core 0.13.0 APIs:
clients keep both wrap paths and pick per node from `protocol_versions`.
clients keep both wrap paths and pick per node from `protocol_version`.

### Phase 4 β€” the v0.19.0 cutover (PENDING)

Expand Down
2 changes: 1 addition & 1 deletion src/nip33.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ pub fn info_to_tags(ln_status: &LnStatus) -> Tags {
// `transport` setting so clients pick the right wire format before
// sending anything. See docs/TRANSPORT_V2_SPEC.md.
Tag::custom(
TagKind::Custom(Cow::Borrowed("protocol_versions")),
TagKind::Custom(Cow::Borrowed("protocol_version")),
vec![mostro_settings.transport.protocol_version().to_string()],
),
Tag::custom(
Expand Down