Skip to content

Commit cd634c1

Browse files
committed
smp server: fix handshake compatibility by moving server info to SMP v21
1 parent a908de6 commit cd634c1

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

protocol/simplex-messaging.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 20, 2026-05-25
1+
Version 21, 2026-07-05
22

33
# Simplex Messaging Protocol (SMP)
44

@@ -107,6 +107,7 @@ This document describes SMP protocol version 20. Versions 1-5 are discontinued.
107107
- v18: support client notices in BLOCKED error
108108
- v19: service subscriptions to messages (SUBS, NSUBS, SOKS, ENDS, ALLS commands)
109109
- v20: public namespaces resolver (RSLV command, RNAME response) — direct or forwarded via PFWD
110+
- v21: server public information in handshake
110111

111112
## Introduction
112113

src/Simplex/Messaging/Transport.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ smpBlockSize = 16384
169169
-- 17 - create notification credentials with NEW (7/12/2025)
170170
-- 18 - support client notices (10/10/2025)
171171
-- 19 - service subscriptions to messages (10/20/2025)
172-
-- 20 - server public information in handshake (7/5/2026)
172+
-- 20 - public namespaces resolver, RSLV command (6/20/2026)
173+
-- 21 - server public information in handshake (7/5/2026)
173174

174175
data SMPVersion
175176

@@ -204,7 +205,7 @@ namesSMPVersion :: VersionSMP
204205
namesSMPVersion = VersionSMP 20
205206

206207
serverInfoSMPVersion :: VersionSMP
207-
serverInfoSMPVersion = VersionSMP 20
208+
serverInfoSMPVersion = VersionSMP 21
208209

209210
minClientSMPRelayVersion :: VersionSMP
210211
minClientSMPRelayVersion = VersionSMP 14
@@ -213,10 +214,10 @@ minServerSMPRelayVersion :: VersionSMP
213214
minServerSMPRelayVersion = VersionSMP 14
214215

215216
currentClientSMPRelayVersion :: VersionSMP
216-
currentClientSMPRelayVersion = VersionSMP 20
217+
currentClientSMPRelayVersion = VersionSMP 21
217218

218219
currentServerSMPRelayVersion :: VersionSMP
219-
currentServerSMPRelayVersion = VersionSMP 20
220+
currentServerSMPRelayVersion = VersionSMP 21
220221

221222
-- Max SMP protocol version to be used in e2e encrypted connection between
222223
-- client and server, as defined by SMP proxy. Normally set below the current

0 commit comments

Comments
 (0)