-
Notifications
You must be signed in to change notification settings - Fork 226
Implementation of CAIP-2 for EOSIO blockchains #33
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9c0190f
Added the implementation of CAIP-2 for EOSIO blockchains
6961283
Added discussion issue to the eosio CAIP-2 implementation
951fe8f
Added reference where the Chain ID is better explained to the CAIP-2 …
89c1537
Added EOSIO CAIP reference to README file
d97e083
Update CAIPs/caip-7.md
sebastianmontero 7e72c0a
Update CAIPs/caip-7.md
sebastianmontero 34969bb
Updated the reference definition for the CAIP-2 EOSIO implementation …
2226333
Update CAIPs/caip-7.md
sebastianmontero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| --- | ||
| caip: 7 | ||
| title: Blockchain Reference for the EOSIO Namespace | ||
| author: Sebastian Montero (@sebastianmontero) | ||
| discussions-to: https://github.com/ChainAgnostic/CAIPs/issues/32 | ||
| status: Draft | ||
| type: Standard | ||
| created: 2020-11-30 | ||
| updated: 2020-11-30 | ||
| requires: 2 | ||
| --- | ||
|
|
||
| ## Simple Summary | ||
|
|
||
| This document is about the details of the EOSIO namespaces and references for CAIP-2. | ||
|
|
||
| ## Abstract | ||
|
|
||
| In CAIP-2 a general blockchain identification scheme is defined. This is the | ||
| implementation of CAIP-2 for EOSIO. | ||
|
|
||
| ## Motivation | ||
|
|
||
| See CAIP-2. | ||
|
|
||
| ## Specification | ||
|
|
||
| ### EOSIO Namespace | ||
|
|
||
| The namespace "EOSIO" refers to the EOSIO open-source blockchain platform. | ||
|
|
||
| #### Reference Definition | ||
|
|
||
| The definition is delegated to the [EOSIO Transactions Protocol Documentation](https://developers.eos.io/welcome/v2.0/protocol/transactions_protocol/#32-sign-transaction), the [Chain API Plugin Documentation of the EOSIO Developers Manual](https://developers.eos.io/manuals/eos/latest/nodeos/plugins/chain_api_plugin/api-reference/index?query=chain%20id&page=1#operation/get_info) and the pull request that implemented its generation [Chain ID generation implementation pull request](https://github.com/EOSIO/eos/pull/3425). | ||
| The Chain ID is the SHA256 hash of the genesis state of the chain, and its represented as hexadecimal number of 64 digits | ||
|
sebastianmontero marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Rationale | ||
|
|
||
| Blockchains in the "eosio" namespace are identified by their Chain ID as mentioned in the Reference Definition Section. | ||
|
|
||
| ## Backwards Compatibility | ||
|
|
||
| Not applicable | ||
|
|
||
| ## Test Cases | ||
|
|
||
| This is a list of manually composed examples | ||
|
|
||
| ``` | ||
| # EOS Mainnet | ||
| eosio:aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906 | ||
|
|
||
| # Jungle Testnet | ||
| eosio:e70aaab8997e1dfce58fbfac80cbbb8fecec7b99cf982a9444273cbc64c41473 | ||
|
|
||
| # Telos Mainnet | ||
| eosio:4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11 | ||
|
|
||
| # Telos Testnet | ||
| eosio:1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f | ||
| ``` | ||
|
|
||
| ## Links | ||
|
|
||
| - [Chain API Plugin Documentation of the EOSIO Developers Manual](https://developers.eos.io/manuals/eos/latest/nodeos/plugins/chain_api_plugin/api-reference/index?query=chain%20id&page=1#operation/get_info) | ||
| - [Chain ID generation implementation pull request](https://github.com/EOSIO/eos/pull/3425) | ||
| - [EOSIO Transactions Protocol Documentation](https://developers.eos.io/welcome/v2.0/protocol/transactions_protocol/#32-sign-transaction) | ||
|
|
||
| ## Copyright | ||
|
|
||
| Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.