From 9cbc7c37f4631629719c3e82cf8b76544fb2156b Mon Sep 17 00:00:00 2001 From: blacktemplar Date: Wed, 9 Sep 2020 15:02:47 +0200 Subject: [PATCH] use raw SHA256 as message-id --- specs/phase0/p2p-interface.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/phase0/p2p-interface.md b/specs/phase0/p2p-interface.md index 5f591708e..be2d40ca3 100644 --- a/specs/phase0/p2p-interface.md +++ b/specs/phase0/p2p-interface.md @@ -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: