-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
35/WAKU2-NOISE 37/WAKU2-NOISE-SESSIONS 43/WAKU2-NOISE-PAIRING #950
Comments
@s1fr0 if we want to do an example with nwaku, to create a session channel between js-waku and nwaku, how would it look like? I guess we would need to build a small binary that enables 1:1 chats? |
Of course we can have a separate binary, but we can also enrich current nwaku/js chat2 client with a |
The way I see it would be: Browser<>Browser:
Browser<>go-waku/nwaku
So yes, |
Code for browser <> browser pairing is available at: https://github.com/waku-org/js-noise The following actions are still pending:
|
do note it's usually easier to use if the user can important everything from |
In this PR waku-org/js-noise#11 the following items were implemented:
I'll follow your suggestion of having everything imported from |
I'm currently attempting to implement a js-waku <> go-waku example as I have created a pairing object with similar functionality to js-noise in go-waku |
Todo:
The waku socket PoC can be tacked in the existing issue. |
@weboko can we track the improvement of the existing noise API to replace the |
I made this issue to track it waku-org/js-noise#14 |
@richard-ramos what is the state of the go-waku example? |
Go-waku's example is complete and pointing to https://examples.waku.org/ |
Next steps:
|
Also:
|
I think now those are done:
Is there any necessity for this one, @fryorcraken ?
|
Yes so that one can just download the bin to play with device pairing. @richard-ramos can you please handle that? |
This is a bug report/feature or change request/support request
Problem
There are no documented or proposed way to create a secure session between two nodes.
Proposed Solutions
Implement vacp2p/rfc#531
Acceptance Criteria
Waku Socket (better name pending) #681 functionality is available -> let's review once Move noise example examples.waku.org#177 is mergedNotes
This needs support for https://rfc.vac.dev/spec/35/ and https://rfc.vac.dev/spec/37/
Implementation of these two specs should be planned and track in this issue.
Noise pairing needs a handshake before a
Decoder
andEncoder
can be generated to send and receive messages over the encrypted channel.Most likely, the API would look like that:
WakuRelay
orWakuFilter
+WakuLightPush
objectsDecoder
andEncoder
from the noise pairing objectFor (1), we are likely to wait to define a
Sender
andReceiver
interfaces so that the noise pairing oblivious to the waku protocol used to send and receive messages.We could also have a fallback strategy for the pairing by using
WakuStore
if passed and if a timeout is reached.In this case, #964 could be handy as the store retrieval could be done from the last handshake message received or sent.
The text was updated successfully, but these errors were encountered: