Skip to content
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

KIP-0034: Include WebRTC WebSocket/Signal Server in Chainweb Node (Prepare for WalletConnect Replacement) #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

openaccess-id
Copy link

This proposal suggests adding a WebRTC endpoint to Chainweb nodes for text-based communication. The goal is to distribute workload, improve efficiency, and replace the WalletConnect approach. The WebRTC WebSocket would establish peer-to-peer connections between browser-based dApps (local users) and wallets (local) for secure text-only communication.

The Chainweb node would handle and validate the initial connection setup only, enhancing privacy and enabling large-scale transaction data sharing directly between peers, bypassing relay servers.

@openaccess-id openaccess-id changed the title Create kip-0034.md KIP-0034: Include WebRTC WebSocket/Signal Server in Chainweb Node (Prepare for WalletConnect Replacement) Nov 27, 2024
@openaccess-id
Copy link
Author

openaccess-id commented Nov 29, 2024

Regarding KIP 0030 – Unified Standard for dApp-Wallet Communication:

  • Same device: Postmessage for apps and crossbrowser
  • Cross-device: WebRTC (as proposed in the nodes).

For the sake of developer UX, why not implement a single standalone, modular, extendable, and minimal library instead of two separate implementations? ( so we don't have to :) )

Message validation and most workflow remains the same either way.


Minimal Version:

  • Plain messaging functions (documented) Additional: example
  • Incoorporated message validation / extendable switch for message X, Y, Z (documented error & success messages)
  • Allows to incoorporate pact-lang.js / hdwallet / spirekey-min.js? and others independently

Extended Version:

  • Incorporated into the Kadena Client and Spirekey SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant