A Go implementation of the DAG interface for Ethereum IPLD types for use with for go-ipld-prime
Use Decode(ipld.NodeAssembler, io.Reader) and Encode(ipld.Node, io.Writer) directly, or import the packages to have the codecs registered into the go-ipld-prime CID link loader.
Use the dageth.Type slab to select the appropriate type (e.g. dageth.Type.Transaction) for strictness guarantees.
Basic ipld.Nodes will need to have the appropriate fields (and no others) to successfully encode using this codec.
Header - 0x90
Uncles (Header list) - 0x91
Transaction - 0x93
Transaction Trie Node - 0x92
Receipt - 0x95
Receipt Trie Node - 0x94
State Trie Node - 0x96
State Account - 0x97
Storage Trie Node - 0x98
Copyright © 2021 Vulcanize Inc
Licensed under either of
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.