Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

26/WAKU-PAYLOAD #413

Merged
merged 43 commits into from
Jul 7, 2021
Merged

26/WAKU-PAYLOAD #413

merged 43 commits into from
Jul 7, 2021

Conversation

oskarth
Copy link
Contributor

@oskarth oskarth commented Jul 1, 2021

Addresses #412

This specification describes how Waku provides provides confidentiality, authenticity, and integrity, as well as some form unlinkability.
Specifically, it describes how encryption, decryption and signing works in 6/WAKU1 and in 10/WAKU2 with 14/WAKU-MESSAGE version 1.

This specification effectively replaces 7/WAKU-DATA as well as 6/WAKU1 Payload encryption but written in a way that is agnostic and self-contained for Waku v1 and Waku v2.

Large sections of the specification originate from EIP-627: Whisper spec as well from RLPx Transport Protocol spec (ECIES encryption) with some modifications.


I based this largely on (a) existing specs (b) looking at how nim-eth implements stuff, and a bit at the go-ethereum implementation. I've probably missed something, so a critical eye would be useful here!

Note that this is about documenting existing behavior, not improving it. Improving it based on clear issues would be something for later, but thoughts on this would be welcome. See this issue: #414

Copy link
Contributor

@D4nte D4nte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments. I know it's draft but hopefully it helps.

content/docs/rfcs/26/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/26/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/26/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/26/README.md Show resolved Hide resolved
@oskarth oskarth changed the title 26/WAKU-PAYLOAD [WIP] 26/WAKU-PAYLOAD Jul 2, 2021
@oskarth oskarth marked this pull request as ready for review July 2, 2021 03:55
@oskarth oskarth requested a review from kdeme July 5, 2021 11:33
Copy link
Contributor

@kdeme kdeme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! :)
I have added some comments.

content/docs/rfcs/26/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/26/README.md Show resolved Hide resolved
content/docs/rfcs/26/README.md Show resolved Hide resolved
content/docs/rfcs/26/README.md Show resolved Hide resolved
content/docs/rfcs/26/README.md Show resolved Hide resolved
content/docs/rfcs/26/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/26/README.md Outdated Show resolved Hide resolved
content/docs/rfcs/26/README.md Show resolved Hide resolved
content/docs/rfcs/26/README.md Show resolved Hide resolved
content/docs/rfcs/26/README.md Outdated Show resolved Hide resolved
@oskarth oskarth requested a review from staheri14 July 7, 2021 06:21
@oskarth
Copy link
Contributor Author

oskarth commented Jul 7, 2021

Thanks everyone for your comments!

87 comments, 41 commits and 3 approvals - I'll go ahead and merge this now. If we have further improvements, I suggest we address these in future issues/PRs.

@oskarth oskarth merged commit 8d7ad8a into master Jul 7, 2021
@oskarth oskarth deleted the 26/WAKU-PAYLOAD branch July 7, 2021 06:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants