core, ui: message signing (#7115)

This commit is contained in:
spaced4ndy authored and GitHub committed 2026-07-10 19:55:10 +00:00
1 parent ee51168374
commit 51ad366e8b
70 files changed
+1742 -388

No files matched your search

+4 -3
View File
@@ -283,20 +283,21 @@ Send messages.
- sendRef: [ChatRef](./TYPES.md#chatref)
- liveMessage: bool
- ttl: int?
- signMessages: bool
- composedMessages: [[ComposedMessage](./TYPES.md#composedmessage)]
**Syntax**:
```
/_send <str(sendRef)>[ live=on][ ttl=<ttl>] json <json(composedMessages)>
/_send <str(sendRef)>[ live=on][ ttl=<ttl>][ sign=on] json <json(composedMessages)>
```
```javascript
'/_send ' + ChatRef.cmdString(sendRef) + (liveMessage ? ' live=on' : '') + (ttl ? ' ttl=' + ttl : '') + ' json ' + JSON.stringify(composedMessages) // JavaScript
'/_send ' + ChatRef.cmdString(sendRef) + (liveMessage ? ' live=on' : '') + (ttl ? ' ttl=' + ttl : '') + (signMessages ? ' sign=on' : '') + ' json ' + JSON.stringify(composedMessages) // JavaScript
```
```python
'/_send ' + ChatRef_cmd_string(sendRef) + (' live=on' if liveMessage else '') + ((' ttl=' + str(ttl)) if ttl is not None else '') + ' json ' + json.dumps(composedMessages) # Python
'/_send ' + ChatRef_cmd_string(sendRef) + (' live=on' if liveMessage else '') + ((' ttl=' + str(ttl)) if ttl is not None else '') + (' sign=on' if signMessages else '') + ' json ' + json.dumps(composedMessages) # Python
```
**Responses**:
+22 -1
View File
@@ -139,6 +139,7 @@ This file is generated automatically.
- [MsgReaction](#msgreaction)
- [MsgReceiptStatus](#msgreceiptstatus)
- [MsgSigStatus](#msgsigstatus)
- [MsgVerified](#msgverified)
- [NameErrorType](#nameerrortype)
- [NetworkError](#networkerror)
- [NewUser](#newuser)
@@ -873,7 +874,7 @@ Group:
- editable: bool
- forwardedByMember: int64?
- showGroupAsSender: bool
- msgSigned: [MsgSigStatus](#msgsigstatus)?
- msgVerified: [MsgVerified](#msgverified)
- createdAt: UTCTime
- updatedAt: UTCTime
@@ -2219,6 +2220,7 @@ Phone:
- support: [SupportGroupPreference](#supportgrouppreference)
- sessions: [RoleGroupPreference](#rolegrouppreference)
- comments: [CommentsGroupPreference](#commentsgrouppreference)
- signMessages: [GroupPreference](#grouppreference)
- commands: [[ChatBotCommand](#chatbotcommand)]
@@ -2311,6 +2313,7 @@ MemberSupport:
- "support"
- "sessions"
- "comments"
- "signMessages"
---
@@ -2552,6 +2555,7 @@ UpdateRequired:
- support: [SupportGroupPreference](#supportgrouppreference)?
- sessions: [RoleGroupPreference](#rolegrouppreference)?
- comments: [CommentsGroupPreference](#commentsgrouppreference)?
- signMessages: [GroupPreference](#grouppreference)?
- commands: [[ChatBotCommand](#chatbotcommand)]?
@@ -2952,6 +2956,23 @@ Unknown:
- "signedNoKey"
---
## MsgVerified
**Discriminated union type**:
Signed:
- type: "signed"
- sigStatus: [MsgSigStatus](#msgsigstatus)
SigMissing:
- type: "sigMissing"
Unsigned:
- type: "unsigned"
---
## NameErrorType