update protospec to mention consent sigs

This commit is contained in:
Andre Staltz 2023-07-10 15:55:35 +03:00
parent 0899ac5818
commit 2347592aac
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,12 @@ interface Msg {
}
```
The `data` object varies:
- In the first message: `{ add: <pubkey>, nonce: <nonce> }`
- In subsequent messages: `{ add: <pubkey>, consent: <consent> }`
- Where `<consent>` is the base58-encoded signature of the string `:identity-add:<ID>` where `<ID>` is the identity's ID
## Feed root
The root msg for a feed is special, its `metadata` is predictable and can be constructed by any peer. It is a data-less msg with the following shape: