Re:P2P WhatsApp, Instagram and Metaverse in a PWA
by Screen8774 on Sunday March 24, 2024 @06:08PM
(#39810959)
The peerjs connection ID is what is shared.
On first-connection, the keys are generated and exchanged over webrtc. it only does this on the first-time-connection.
On subsequent connections, the keys are used to validate identity else the connection is rejected.
each party generates a public/private key pair, the key in the url is a public key to exchange with a peer, then the communication is encoded/decoded with the keys, right ?