add sig field in the encrypted_text

This commit is contained in:
0xchatTeam 2023-05-14 13:02:31 +08:00
parent c2fee01eda
commit 85f2b2f833

11
101.md
View File

@ -27,7 +27,16 @@ The protocol can be implemented following the steps below. Note that the content
1. User A (the initiator) generates an alias key pair derived from their own private key and User B's (the recipient) public key.
2. User A sends a 10100 kind event to User B, signed with their alias private key. The 'p' parameter is User B's real pubkey. The `encrypted_text` can be in json format: `{"p":"A's real pubkey", "content":"your content"}`.
2. User A sends a 10100 kind event to User B, signed with their alias private key. The 'p' parameter is User B's real pubkey. The `encrypted_text` can be in json format:
```json
{
"p":"A's real pubkey",
"content":"your content",
"sig":"<64-bytes hex of the signature of the event id, signed by A's real private key>"
}
```
For example: