Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.46 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.46 KB

go-codec-dageth

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.

Supported types

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

License & Copyright

Copyright © 2021 Vulcanize Inc

Licensed under either of

Contribution

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.