Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Revert #115 #116

Merged
merged 1 commit into from
Sep 15, 2022
Merged

Revert #115 #116

merged 1 commit into from
Sep 15, 2022

Conversation

bvrooman
Copy link
Contributor

@bvrooman bvrooman commented Sep 15, 2022

This reverts PR #115, commit bf20199.

It turns out that removing the first leaf from the BMT proof set makes it incompatible with the current implementation of proof verification in test-helpers/src/binary/verify.rs. Proof sets without the first leaf (the leaf being proven) are incomplete; the first leaf is required in order to allow the proof set to be properly hashed together to form the root signature.

The previous PR removed the first leaf from the public implementation of the proof sets. However, the reference implementation began to fail its verification test suite once I updated it to remove the first leaf from its proof sets. Therefore, I am reverting the change to remove the first leaf from the public implementation in order to maintain parity with the reference implementation.

@bvrooman bvrooman changed the title Revert "debt: Remove first leaf from BMT proof set (#115)" Revert #115 Sep 15, 2022
@bvrooman bvrooman self-assigned this Sep 15, 2022
@bvrooman bvrooman marked this pull request as ready for review September 15, 2022 06:36
@bvrooman bvrooman merged commit ade288e into master Sep 15, 2022
@bvrooman bvrooman deleted the bvrooman/debt-revert-115 branch September 15, 2022 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant