mirror of https://github.com/status-im/EIPs.git
Add URL Format ERC
This commit is contained in:
parent
4400ae7ee7
commit
a870e8b88b
|
@ -0,0 +1,42 @@
|
||||||
|
## Preamble
|
||||||
|
|
||||||
|
EIP: 831
|
||||||
|
Title: URL Format for Ethereum
|
||||||
|
Author: ligi <ligi@ligi.de>
|
||||||
|
Type: Standard Track
|
||||||
|
Category: ERC
|
||||||
|
Status: Draft
|
||||||
|
Replaces: 67
|
||||||
|
Created: 2018-01-15
|
||||||
|
|
||||||
|
## Simple Summary
|
||||||
|
|
||||||
|
A standard way of creating Ethereum URLs for various use-cases.
|
||||||
|
|
||||||
|
## Abstract
|
||||||
|
|
||||||
|
URLs embedded in QR-codes, hyperlinks in web-pages, emails or chat messages provide for robust cross-application signaling between very loosely coupled applications. A standardized URL format allows for instant invocation of the user's preferred wallet application.
|
||||||
|
|
||||||
|
## Motivation
|
||||||
|
|
||||||
|
The need for this ERC emerged when refining ERC-681. We need a container ERC that does not carry the weight of the use-cases and just serves the container for them.
|
||||||
|
|
||||||
|
## Specification
|
||||||
|
|
||||||
|
### Syntax
|
||||||
|
|
||||||
|
Ethereum URLs contain "ethereum" in their schema (protocol) part and are constructed as follows:
|
||||||
|
|
||||||
|
request = "ethereum" ":" [ prefix "-" ] payload
|
||||||
|
prefix = STRING
|
||||||
|
payload = STRING
|
||||||
|
|
||||||
|
### Semantics
|
||||||
|
|
||||||
|
`prefix` is optional and defines the use-case for this URL. If no prefix is given "pay-" is assumed to be concise and ensure backward compatibility to ERC-67
|
||||||
|
|
||||||
|
`payload` is mandatory and the content depends on the prefix. Structuring of the content is defined in the ERC for the specific use-case and not in the scope of this document. One example is ERC-681 for the pay- prefix.
|
||||||
|
|
||||||
|
## Copyright
|
||||||
|
|
||||||
|
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
|
Loading…
Reference in New Issue