-
Notifications
You must be signed in to change notification settings - Fork 14
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
Move proof to be a sub-module of merkle #378
Conversation
7501646
to
1181533
Compare
f4b38aa
to
c725aca
Compare
1181533
to
fb7e0ed
Compare
c725aca
to
3353386
Compare
fb7e0ed
to
a24a5c0
Compare
3353386
to
0a469e4
Compare
a24a5c0
to
633e303
Compare
0a469e4
to
865ec1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API returns proofs, so we want api::Proof to be visible to callers. Otherwise, the whole merkle module has to be pub.
633e303
to
1346d8a
Compare
865ec1a
to
b4f58a5
Compare
I thought the
This specifically is incorrect. The whole purpose of |
This only works if
|
b4f58a5
to
25eaca9
Compare
but this does |
This change resolves my concern: https://github.com/ava-labs/firewood/compare/b4f58a50058431fc80d0b8ac5b680573d33ff6b0..25eaca9a4800f6d24b9aa881ae0245dd25c4c49e Apologies for thinking that this wasn't possible. I didn't realize that if you have a pub inside a private module and have visibility to that, it can be exported in a public module. Thanks for educating me @richardpringle |
Proofs only make sense in the context of a merkle-tree, therefore they should be a submodule of the merkle module.