Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 932 Bytes

File metadata and controls

11 lines (6 loc) · 932 Bytes

firewood-go-ethhash

firewood-go-ethhash provides a Golang FFI wrapper for Firewood.

This repo serves serves as a mirror, maintained by Firewood CI, to include both the Firewood Golang FFI source code and attach pre-built binaries directly to source. This enables the Go toolchain to import Firewood and use the pre-built binaries with CGO without worrying about the fact it's implemented in Rust.

These binaries provide an Ethereum-compatible hashing scheme, emulating that of HashDB and PathDB. For example usage, see the Firewood hashing tests.

Although Firewood supports a more efficient version of merkle hashing for general purpose use, this is disabled for these pre-built binaries.

For complete documentation, see Firewood FFI.