specs/status-EIPs.md

212 lines
9.8 KiB
Markdown
Raw Normal View History

2019-11-26 13:47:24 +00:00
# Status EIPs standards
> Version: 0.1 (Draft)
>
> Authors: Ricardo Guilherme Schmidt <ricardo3@status.im>
## Abstract
In this specification, we describe how Status relates with EIPs.
## Table of Contents
- [Status EIPs standards ](#status-client-specification)
- [Abstract](#abstract)
- [Table of Contents](#table-of-contents)
- [Introduction](#introduction)
- [Components](#components)
- [Security Considerations](#security-considerations)
- [Design Rationale](#design-rationale)
- [Footnotes](#footnotes)
- [Acknowledgements](#acknowledgements)
## Introduction
Status should follow all standards as possible. Whenever a feature is needed, it should be first checked if there is a standard for that, if not, Status should propose a standard.
### Support table
| | BIP32 | BIP39 | BIP43 | BIP44 | EIP20 | EIP55 | EIP67 | EIP137 | EIP155 | EIP165 | EIP181 | EIP191 | EIP627 | EIP681 | EIP712 | EIP721 | EIP831 | EIP945 | EIP1102 | EIP1193 | EIP1577 | EIP1581 |
| --------- | ----- | ----- | ----- | ----- | ----- | ----- | ----- | ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------ | ------- | ------- | ------- | ------- |
| Status v0 | N | Y | N | N | Y | Y | P | P | Y | P | P | Y? | Y | Y | P | P | N | Y | Y | Y | Y | N |
| Status v1 | Y | Y | Y | Y | Y | Y | P | P | Y | N | N | N | Y | N | P | P | Y | Y | Y | Y | P | Y |
| Other | N | Y | N | N | Y | Y | N | N | Y | N | N | Y | N | Y | Y | Y | N | N | Y | Y | N | N |
## Components
### BIP32 - Hierarchical Deterministic Wallets
Support: Dependency
Reference: https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
Description: Enable wallets to derive multiple private keys from the same seed.
2019-11-27 06:19:44 +00:00
Used for: Dependency of BIP39 and BIP43
2019-11-26 13:47:24 +00:00
### BIP39 - Mnemonic code for generating deterministic keys
Support: Dependency
Reference: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
Description: Enable wallet to create private key based on a safe seed phrase.
2019-11-27 06:19:44 +00:00
Used for: Security and user experience.
2019-11-26 13:47:24 +00:00
### BIP43 - Purpose Field for Deterministic Wallets
Support: Dependency
Reference: https://github.com/bitcoin/bips/blob/master/bip-0043.mediawiki
Description: Enable wallet to create private keys branched for a specific purpose.
2019-11-27 06:19:44 +00:00
Used for: Dependency of BIP44, uses "ethereum" coin.
2019-11-26 13:47:24 +00:00
### BIP44 - Multi-Account Hierarchy for Deterministic Wallets
Support: Dependency
Reference: https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki
Description: Enable wallet to derive multiple accounts in top of BIP39
2019-11-27 06:19:44 +00:00
Used for: Privacy
2019-11-26 13:47:24 +00:00
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/constants.cljs#L240
Observation: BIP44 don't solve privacy issues regarding the transparency of transactions, therefore directly connected addresses through a transactions can be identifiable by a "network reconnaissance attack" over transaction history, this attack together with leakage of information from centralized services, such as exchanges, would be fatal against the whole privacy of users, regardless of BIP44.
### EIP20 - Fungible Token
Support: Full
Reference: https://eips.ethereum.org/EIPS/eip-20
Description: Enable wallets to use tokens based on smart contracts compilant with this standard.
2019-11-27 06:19:44 +00:00
Used for: Wallet feature.
2019-11-26 13:47:24 +00:00
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/tokens.cljs
### EIP55 - Mixed-case checksum address encoding
Support: Full
Reference: https://eips.ethereum.org/EIPS/eip-55
Description: Checksum standard that uses lowercase and uppercase inside address hex value.
2019-11-27 06:19:44 +00:00
Used for: Sanity check of forms using ethereum address.
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/issues/4959 https://github.com/status-im/status-react/issues/8707
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/eip55.cljs
### EIP67 - Standard URI scheme with metadata, value and byte code
Support: Partial
Reference: https://github.com/ethereum/EIPs/issues/67
Description: A standard way of creating Ethereum URIs for various use-cases.
2019-11-27 06:19:44 +00:00
Used for: Legacy support
2019-11-26 13:47:24 +00:00
https://github.com/status-im/status-react/issues/875
### EIP137 - Ethereum Domain Name Service - Specification
Support: Partial
Reference: https://eips.ethereum.org/EIPS/eip-137
Description: Enable wallets to lookup ENS names.
2019-11-27 06:19:44 +00:00
Used for: User experience, as a wallet and identity feature, usernames.
2019-11-26 13:47:24 +00:00
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/ens.cljs#L86
### EIP155 - Simple replay attack protection
Support: Full
Reference: https://eips.ethereum.org/EIPS/eip-155
Description: Defined chainId parameter in the singed ethereum transaction payload.
2019-11-27 06:19:44 +00:00
Used for: Signing transactions, crucial to safety of users against replay attacks.
2019-11-26 13:47:24 +00:00
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/core.cljs
### EIP165 - Standard Interface Detection
Support: Dependency/Partial
Reference: https://eips.ethereum.org/EIPS/eip-165
Description: Standard interface for contract to answer if it supports other interfaces.
2019-11-27 06:19:44 +00:00
Used for: Dependency of ENS and EIP721.
2019-11-26 13:47:24 +00:00
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/eip165.cljs
### EIP181 - ENS support for reverse resolution of Ethereum addresses
Support: Partial
Reference: https://eips.ethereum.org/EIPS/eip-181
Description: Enable wallets to render reverse resolution of Ethereum addresses
2019-11-27 06:19:44 +00:00
Used for: Wallet feature
2019-11-26 13:47:24 +00:00
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/ens.cljs#L86
### EIP191 - Signed Message
Support: Full
Reference: https://eips.ethereum.org/EIPS/eip-191
Description: Contract signature standard, adds an obrigatory padding to signed message to differentiate from Ethereum Transaction messages.
2019-11-27 06:19:44 +00:00
Used for: Dapp support, security, dependency of ERC712.
2019-11-26 13:47:24 +00:00
### EIP627 - Whisper Specification
Support: Full
Reference: https://eips.ethereum.org/EIPS/eip-627
Description: format of Whisper messages within the ÐΞVp2p Wire Protocol
2019-11-27 06:19:44 +00:00
Used for: Chat protocol
2019-11-26 13:47:24 +00:00
### EIP681 - URL Format for Transaction Requests
Support: Partial
Reference: https://eips.ethereum.org/EIPS/eip-681
Description: A link that pop up a transaction in the wallet.
2019-11-27 06:19:44 +00:00
Used for: Useful as QRCode data for tranasction requests, chat transaction requests and for dapp links to transaction requests.
2019-11-26 13:47:24 +00:00
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/eip681.cljs
Related: [Issue #9183: URL Format for Transaction Requests (EIP681) is poorly supported](https://github.com/status-im/status-react/issues/9183) https://github.com/status-im/status-react/pull/9240 https://github.com/status-im/status-react/issues/9238 https://github.com/status-im/status-react/issues/7214 https://github.com/status-im/status-react/issues/7325 https://github.com/status-im/status-react/issues/8150
### EIP712 - Typed Signed Message
Support: Partial
Reference: https://eips.ethereum.org/EIPS/eip-712
Description: Standarize types for contract siganture, allowing users to easily inspect whats being signed.
2019-11-27 06:19:44 +00:00
Used for: User experience, security.
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/issues/5461 https://github.com/status-im/status-react/commit/ba37f7b8d029d3358c7b284f6a2383b9ef9526c9
### EIP721 - Non Fungible Token
Support: Partial
Reference: https://eips.ethereum.org/EIPS/eip-721
Description: Enable wallets to use tokens based on smart contracts compilant with this standard.
2019-11-27 06:19:44 +00:00
Used for: Wallet feature.
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/issues/8909
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/erc721.cljs https://github.com/status-im/status-react/blob/develop/src/status_im/ethereum/tokens.cljs
### EIP945 - Web 3 QR Code Scanning API
Support: Full
Reference: https://github.com/ethereum/EIPs/issues/945
2019-11-27 06:19:44 +00:00
Used for: Sharing contactcode, reading transaction requests.
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/issues/5870
### EIP1102 - Opt-in account exposure
Support: Full
Reference: https://eips.ethereum.org/EIPS/eip-1102
Description: Allow users to opt-in the exposure of their ethereum address to dapps they browse.
2019-11-27 06:19:44 +00:00
Used for: Privacy, DApp support.
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/issues/7985
### EIP1193 - Ethereum Provider JavaScript API
Support: Full
Reference: https://eips.ethereum.org/EIPS/eip-1193
Description: Allows dapps to recognize event changes on wallet
2019-11-27 06:19:44 +00:00
Used for: DApp support.
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/pull/7246
### EIP1577 - contenthash field for ENS
Support: Partial
Reference: https://eips.ethereum.org/EIPS/eip-1577
Description: Allows users browse ENS domains using contenthash standard.
2019-11-27 06:19:44 +00:00
Used for: Browser, DApp support
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/issues/6688
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/utils/contenthash.cljs https://github.com/status-im/status-react/blob/develop/test/cljs/status_im/test/utils/contenthash.cljs#L5
### EIP1581 - Non-wallet usage of keys derived from BIP-32 trees
Support: Partial
Reference: https://eips.ethereum.org/EIPS/eip-1581
Description: Allow wallet to derive keys that are less sensible (non wallet)
2019-11-27 06:19:44 +00:00
Used for: Security (dont reuse wallet key) and user experience (dont request keycard every login)
2019-11-26 13:47:24 +00:00
Related: https://github.com/status-im/status-react/issues/9088 https://github.com/status-im/status-react/pull/9096
Sourcecode: https://github.com/status-im/status-react/blob/develop/src/status_im/constants.cljs#L242
## Security Considerations
## Design Rationale
## Footnotes
## Acknowledgements