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

Accessors for leaf hashes in Merkle Tree #4

Open
eddyashton opened this issue Jul 9, 2020 · 2 comments
Open

Accessors for leaf hashes in Merkle Tree #4

eddyashton opened this issue Jul 9, 2020 · 2 comments
Assignees

Comments

@eddyashton
Copy link

We'd like to read individual hashes from the merkle tree, after insertion (and in fact usually after deserialisation). We're currently doing this by inspecting the tree's state directly. This is unsafe and we expect it to break each time we take an update, since we're relying on unspecified properties of the generated structs.

Can you please add some verified, generated accessors for the merkle tree state? Primarily mt_get_leaf, but ideally also mt_get_leaf_range, mt_get_begin_index, and mt_get_end_index.

@msprotz
Copy link
Contributor

msprotz commented Jul 9, 2020

CC @fournet and @wintersteiger, for reference. Christoph, is this something you might have time for?

@wintersteiger
Copy link

I'm aware of the request and I think we do definitely want to add that, but I'm too busy to implement it right now. I hope I'll find some time to at least start this within a couple weeks or so.

@wintersteiger wintersteiger self-assigned this Jul 10, 2020
@beurdouche beurdouche added enhancement New feature or request and removed enhancement New feature or request labels Jul 23, 2020
@msprotz msprotz transferred this issue from hacl-star/hacl-star Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants