NIP-AC: WebRTC signaling for p2p connections - #2461
Open
Named666 wants to merge 2 commits into
Open
Conversation
NIP-AC: WebRTC signaling for p2p connections.
Collaborator
|
Is it similar to #2301? |
Author
There is certainly some overlap in that both involve WebRTC. However, that proposal appears to be focused specifically on calls, whereas this NIP is more general-purpose and not tied to any particular WebRTC use case. Its only concern is establishing a connection between peers. In that sense, this is intended to be client- and use-case-agnostic. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft NIP that uses existing Nostr relays as the bootstrap/signaling channel for direct WebRTC connections, plus addressable announcements so peers can discover who holds a given opaque identifier (content hash, topic, service name, or pubkey). No new transport or envelope. Signaling is ordinary signed events; session correlation is e tags; identity is the event pubkey.
WebRTC still needs a place to exchange SDP offer/answer and ICE candidates. Relays peers already use can do that job:
p-addressed ephemeral eventsetagsREQover announcement events, not a custom RPCOnce the data channel / media path is up, relays drop out of the path.
Notes for reviewers
contentdecrypts only for the intended recipient