Skip to content

Commit

Permalink
Update message.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jimstir authored Feb 27, 2025
1 parent f39d5d6 commit 010d422
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions waku/standards/core/14/message.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ adds capabilities.

The present document specifies the [10/WAKU2](/waku/standards/core/10/waku2.md) message format.
A way to encapsulate the messages sent with specific information security goals,
and Whisper/Waku v1 backward compatibility.
and Whisper/[6/WAKU1](/waku/standards/legacy/6/waku1.md) backward compatibility.

## Motivation

Expand Down Expand Up @@ -134,16 +134,16 @@ The Waku Noise protocol provides symmetric encryption and asymmetric key exchang
Any `version` value not included in this list is reserved for future specification.
And, in this case, the payload SHOULD be interpreted as unencrypted by the Waku layer.

## Whisper/Waku v1 envelope compatibility
## Whisper/[6/WAKU1](/waku/standards/legacy/6/waku1.md) envelope compatibility

Whisper/Waku v1 envelopes are compatible with Waku v2 messages format.
Whisper/[6/WAKU1](/waku/standards/legacy/6/waku1.md) envelopes are compatible with Waku messages format.

- Whisper/Waku v1 `topic` field
SHOULD be mapped to Waku v2 message's `content_topic` attribute.
- Whisper/Waku v1 `data` field SHOULD be mapped to Waku v2 message's `payload` attribute.
- Whisper/[6/WAKU1](/waku/standards/legacy/6/waku1.md) `topic` field
SHOULD be mapped to Waku message's `content_topic` attribute.
- Whisper/[6/WAKU1](/waku/standards/legacy/6/waku1.md) `data` field SHOULD be mapped to Waku message's `payload` attribute.

[10/WAKU2](/waku/standards/core/10/waku2.md) implements a publish/subscribe messaging pattern over libp2p.
This makes some Whisper/Waku v1 envelope fields redundant
This makes some Whisper/[6/WAKU1](/waku/standards/legacy/6/waku1.md) envelope fields redundant
(e.g., `expiry`, `ttl`, `topic`, etc.), so they can be ignored.

## Deterministic message hashing
Expand Down

0 comments on commit 010d422

Please sign in to comment.