Skip to content

Commit

Permalink
Add eth-objects
Browse files Browse the repository at this point in the history
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 MetaMask/metamask-extension#719 (comment)). 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.
  • Loading branch information
kumavis authored Dec 23, 2016
1 parent 22ce4a1 commit eda4e2e
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eda4e2e

Please sign in to comment.