use raw SHA256 as message-id

This commit is contained in:
blacktemplar 2020-09-09 15:02:47 +02:00
parent 88cdc5bc80
commit 9cbc7c37f4
1 changed files with 1 additions and 2 deletions

View File

@ -246,9 +246,8 @@ Likewise, clients MUST NOT emit or propagate messages larger than this limit.
The `message-id` of a gossipsub message MUST be: The `message-id` of a gossipsub message MUST be:
```python ```python
message-id: base64(SHA256(message.data)) message-id: SHA256(message.data).
``` ```
where `base64` is the [URL-safe base64 alphabet](https://tools.ietf.org/html/rfc4648#section-3.2) with padding characters omitted.
The payload is carried in the `data` field of a gossipsub message, and varies depending on the topic: The payload is carried in the `data` field of a gossipsub message, and varies depending on the topic: