Skip to content

A Go implementation of the IPLD DAG interface for Ethereum types

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

vulcanize/go-codec-dageth

Repository files navigation

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.

About

A Go implementation of the IPLD DAG interface for Ethereum types

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published