Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: merkle root ffi #57

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Merge branch 'main' into feat/ffi
olivmath authored Feb 2, 2024
commit 26b14bf03bd5a76bb09454179ac5503bf81bbf96
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ pre-commit = "^3.0.3"
coverage = "^7.2.7"
pyclean = "^2.2.0"
pytest = "^7.2.1"
black = "^23.1.0"
black = "^24.1.1"

[build-system]
requires = ["poetry-core>=1.0.0"]

Unchanged files with check annotations Beta

root = tree.root
result = treers.make_root(leaves_bytes)
assert list(root) == list(result)

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
@mark.ffi
proof = tree.proof("a")
result = treers.make_proof(leaves_bytes, leaves_bytes[0])
assert proof == result

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
You are viewing a condensed version of this merge commit. You can view the full changes here.