From eda4e2e08ad4029058c95206cddc27d6c0e4bbfe Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 23 Dec 2016 13:22:29 -0800 Subject: [PATCH] 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. --- table.csv | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/table.csv b/table.csv index 03080c1..b87146d 100644 --- a/table.csv +++ b/table.csv @@ -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