mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-25 13:15:44 +00:00
Automatically merged updates to draft EIP(s) 1328
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
This commit is contained in:
parent
480487425a
commit
281e28362c
@ -7,12 +7,11 @@ category: ERC
|
|||||||
status: Draft
|
status: Draft
|
||||||
created: 2018-08-15
|
created: 2018-08-15
|
||||||
discussions-to: https://ethereum-magicians.org/t/wallet-connect-eip/850
|
discussions-to: https://ethereum-magicians.org/t/wallet-connect-eip/850
|
||||||
requires: 831
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Simple Summary
|
## Simple Summary
|
||||||
|
|
||||||
A standard to create WalletConnect URIs for establishing connections between wallets and applications.
|
A standard to create WalletConnect URIs to initiate connections between applications and wallets.
|
||||||
|
|
||||||
## Abstract
|
## Abstract
|
||||||
|
|
||||||
@ -22,33 +21,33 @@ This standard defines how the data to connect some application and a wallet can
|
|||||||
|
|
||||||
### Syntax
|
### Syntax
|
||||||
|
|
||||||
Function call URIs follow the ERC-831 URI format, with the following parameters:
|
WalletConnect request URI with the following parameters:
|
||||||
|
|
||||||
request = "ethereum" ":" [ "wc-" ]sessionId [ "@" version ][ "?" parameters ]
|
request = "wc" ":" topic [ "@" version ][ "?" parameters ]
|
||||||
sessionId = STRING
|
topic = STRING
|
||||||
version = 1*DIGIT
|
version = 1*DIGIT
|
||||||
parameters = parameter *( "&" parameter )
|
parameters = parameter *( "&" parameter )
|
||||||
parameter = key "=" value
|
parameter = key "=" value
|
||||||
key = "name" / "bridge" / "symKey"
|
key = "bridge" / "key"
|
||||||
value = NUMBER / STRING
|
value = STRING
|
||||||
|
|
||||||
### Semantics
|
### Semantics
|
||||||
|
|
||||||
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.
|
Required parameters are dependent on the Walletconnect protocol version which currently includes the `key`, hex string of symmetric key, and `bridge`, encoded url of the bridge used for establishing the connection.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```
|
```
|
||||||
ethereum:wc-8a5e5bdc-a0e4-4702-ba63-8f1a5655744f@1?name=DappExample&bridge=https://bridge.example.com&symKey=KzpSTk1pezg5eTJRNmhWJmoxdFo6UDk2WlhaOyQ5N0U=
|
wc:8a5e5bdc-a0e4-4702-ba63-8f1a5655744f@1?bridge=https%3A%2F%2Fbridge.walletconnect.org&key=41791102999c339c844880b23950704cc43aa840f3739e365323cda4dfa89e7a
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rationale
|
## 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.
|
The need for this ERC stems from the discussion to move away from JSON format used in the alpha version of the WalletConnect protocol 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. Also by using a URI instead of a JSON inside the QR-Code the Android Intent system can be leveraged.
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
1. ERC-831, http://eips.ethereum.org/EIPS/eip-831
|
1. WalletConnect Technical Specification, https://docs.walletconnect.org/tech-spec
|
||||||
|
|
||||||
## Copyright
|
## Copyright
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user