You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ffi/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,18 @@ This enables consumers to utilize it directly without forcing them to compile Fi
48
48
49
49
To trigger this build, [attach-static-libs](../.github/workflows/attach-static-libs.yaml) supports triggers for both manual GitHub Actions and tags, so you can create a mirror branch/tag on [firewood-go](https://github.com/ava-labs/firewood-go) by either trigger a manual GitHub Action and selecting your branch or pushing a tag to Firewood.
50
50
51
+
### Hash Mode
52
+
53
+
Firewood implemented its own optimized merkle trie structure. To support Ethereum Merkle Trie hash compatibility, it also provides a feature flag `ethhash`.
54
+
55
+
This is an optional feature (disabled by default). To enable it for a local build, compile with:
56
+
57
+
```
58
+
cargo build -p firewood-ffi --features ethhash
59
+
```
60
+
61
+
To support development in [Coreth](https://github.com/ava-labs/coreth), Firewood pushes static libraries to [firewood-go](https://github.com/ava-labs/firewood-go) with `ethhash` enabled by default.
62
+
51
63
## Development
52
64
Iterative building is unintuitive for the ffi and some common sources of confusion are listed below.
0 commit comments