mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
add sig field in the encrypted_text
This commit is contained in:
parent
c2fee01eda
commit
85f2b2f833
11
101.md
11
101.md
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user