mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-06 07:44:56 +00:00
use raw SHA256 as message-id
This commit is contained in:
parent
88cdc5bc80
commit
9cbc7c37f4
@ -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:
|
||||
|
||||
```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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user