Add eth-objects

Here are the Ethereum objects as I have mapped them so far. While there are only two underlying structures (RLP and Eth-(Secure-)Trie), they interpret the format of the leaf values based on context, which is lost when resolving at the IPLD level. I sketched out some versions that used fewer IPLD formats by employing some cleverness in the path naming conventions. (see here https://github.com/MetaMask/metamask-plugin/issues/719#issuecomment-267528294). The consensus was to be explicit instead of clever, thusly the list of objects as I've proposed.

I'd additionally like to reserve 0x99-0x9f for additional Ethereum objects I may have missed or may be introduced when Ethereum milestone Metropolis is released.
This commit is contained in:
kumavis 2016-12-23 13:22:29 -08:00 committed by GitHub
parent 22ce4a10bf
commit eda4e2e08a

View File

@ -171,11 +171,20 @@ mp4, , 0x
mkv, , 0x
IPLD formats,,
dag-pb, MerkleDAG protobuf, 0x70
dag-cbor, MerkleDAG cbor, 0x71
eth-block, Ethereum Block (RLP), 0x90
eth-tx, Ethereum Tx (RLP), 0x91
bitcoin-block, Bitcoin Block, 0xb0
bitcoin-tx, Bitcoin Tx, 0xb1
stellar-block, Stellar Block, 0xd0
stellar-tx, Stellar Tx, 0xd1
dag-pb, MerkleDAG protobuf, 0x70
dag-cbor, MerkleDAG cbor, 0x71
eth-block, Ethereum Block (RLP), 0x90
eth-block-list, Ethereum Block List (RLP), 0x91
eth-tx-trie, Ethereum Transaction Trie (Eth-Trie), 0x92
eth-tx, Ethereum Transaction (RLP), 0x93
eth-tx-receipt-trie, Ethereum Transaction Receipt Trie (Eth-Trie), 0x94
eth-tx-receipt, Ethereum Transaction Receipt (RLP), 0x95
eth-state-trie, Ethereum State Trie (Eth-Secure-Trie), 0x96
eth-account-snapshot, Ethereum Account Snapshot (RLP), 0x97
eth-storage-trie, Ethereum Contract Storage Trie (Eth-Secure-Trie), 0x98
bitcoin-block, Bitcoin Block, 0xb0
bitcoin-tx, Bitcoin Tx, 0xb1
stellar-block, Stellar Block, 0xd0
stellar-tx, Stellar Tx, 0xd1

1 codec description code
171 stellar-tx eth-tx-receipt Stellar Tx Ethereum Transaction Receipt (RLP) 0xd1 0x95
172 eth-state-trie Ethereum State Trie (Eth-Secure-Trie) 0x96
173 eth-account-snapshot Ethereum Account Snapshot (RLP) 0x97
174 eth-storage-trie Ethereum Contract Storage Trie (Eth-Secure-Trie) 0x98
175 bitcoin-block Bitcoin Block 0xb0
176 bitcoin-tx Bitcoin Tx 0xb1
177 stellar-block Stellar Block 0xd0
178 stellar-tx Stellar Tx 0xd1
179
180
181
182
183
184
185
186
187
188
189
190