From 0259d7760a876d199b8cbdcff103013d8b77a4a5 Mon Sep 17 00:00:00 2001 From: Pedro Gomes Date: Wed, 19 Sep 2018 07:53:04 -0700 Subject: [PATCH] Edit & Typos (ERC-1328) (#1371) * fix typo author header * Update eip-1328.md * change sessionId capitalization --- EIPS/eip-1328.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/EIPS/eip-1328.md b/EIPS/eip-1328.md index 90fb6d21..4142fa96 100644 --- a/EIPS/eip-1328.md +++ b/EIPS/eip-1328.md @@ -1,7 +1,7 @@ --- eip: 1328 title: WalletConnect Standard URI Format -authors: ligi , Pedro Gomes +author: ligi , Pedro Gomes type: Standards Track category: ERC status: Draft @@ -24,8 +24,8 @@ This standard defines how the data to connect some application and a wallet can Function call URIs follow the ERC-831 URI format, with the following parameters: - request = "ethereum" ":" [ "wc-" ]sessionID [ "@" version ][ "?" parameters ] - sessionID = STRING + request = "ethereum" ":" [ "wc-" ]sessionId [ "@" version ][ "?" parameters ] + sessionId = STRING version = 1*DIGIT parameters = parameter *( "&" parameter ) parameter = key "=" value @@ -36,6 +36,12 @@ Function call URIs follow the ERC-831 URI format, with the following parameters: Required parameters are dependent on the WalletConnect standard version which currently is specified to only include mobile-to-desktop connection sessions which only require `name` which describes the dapp name, `bridge` which includes the bridge URL, `symKey` which includes the symmetric key in base64. +### Example + +``` +ethereum:wc-8a5e5bdc-a0e4-4702-ba63-8f1a5655744f@1?name=DappExample&bridge=https://bridge.example.com&symKey=KzpSTk1pezg5eTJRNmhWJmoxdFo6UDk2WlhaOyQ5N0U= +``` + ## Rationale The need for this ERC stems from the discussion to move away from JSON format used in current beta version of the WalletConnect standard which makes for very inneficient parsing of the intent of the QR code, making it easier to create better QR code parsers APIs for Wallets to implement for other compatible EIPs using the ERC-831 URI format for Ethereum. Also by using a URI instead of a JSON inside the QR-Code the Android Intent system can be leveraged.