Skip to content

core: signed messages status#6699

Merged
epoberezkin merged 6 commits intochat-relaysfrom
ep/signed-msgs
Mar 24, 2026
Merged

core: signed messages status#6699
epoberezkin merged 6 commits intochat-relaysfrom
ep/signed-msgs

Conversation

@epoberezkin
Copy link
Copy Markdown
Member

No description provided.

@evgeny-simplex evgeny-simplex force-pushed the ep/signed-msgs branch 6 times, most recently from c8d5175 to 4bf48f1 Compare March 23, 2026 13:01
Comment thread src/Simplex/Chat/Messages.hs Outdated
Comment thread src/Simplex/Chat/Protocol.hs Outdated
epoberezkin and others added 3 commits March 23, 2026 13:08
Co-authored-by: Evgeny <evgeny@poberezkin.com>

$(JQ.deriveJSON (enumJSON $ dropPrefix "RS") ''RelayStatus)

data MsgSigStatus = MSSVerified | MSSSignedNoKey
Copy link
Copy Markdown
Contributor

@spaced4ndy spaced4ndy Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data MsgSigStatus = MSSVerified | MSSSignedNoKey
data MsgSigStatus = MSSVerified | MSSSignatureUnverified

Comment on lines +120 to +123
MSSSignedNoKey -> "no_key"
textDecode = \case
"verified" -> Just MSSVerified
"no_key" -> Just MSSSignedNoKey
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MSSSignedNoKey -> "no_key"
textDecode = \case
"verified" -> Just MSSVerified
"no_key" -> Just MSSSignedNoKey
MSSSignatureUnverified -> "signature_unverified"
textDecode = \case
"verified" -> Just MSSVerified
"signature_unverified" -> Just MSSSignatureUnverified

Comment thread src/Simplex/Chat/View.hs
sigStatusStr :: IsString a => Maybe MsgSigStatus -> a
sigStatusStr = \case
Just MSSVerified -> " (signed)"
Just MSSSignedNoKey -> " (signed, no key to verify)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"signed, no key to verify" implies client has knowledge it was signed by sender, even though without verification it can be completely made up by relay, not really "signed".

Suggested change
Just MSSSignedNoKey -> " (signed, no key to verify)"
Just MSSSignedNoKey -> " (signature unverified)"

@epoberezkin epoberezkin merged commit 674a545 into chat-relays Mar 24, 2026
10 of 12 checks passed
@epoberezkin epoberezkin deleted the ep/signed-msgs branch March 24, 2026 20:05
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants