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

chore: rework Period object constructor #167

Merged
merged 2 commits into from
Dec 23, 2019

Conversation

troggy
Copy link
Member

@troggy troggy commented Dec 23, 2019

Suggestion for #166

  1. Set usePrev by default. BREAKING change
  2. Accept optional third arguments of PeriodOptions type:
    allows to set validator data and set usePrev to false for legacy proofs.

1. Set `usePrev` by default. BREAKING change
2. Accept optional third arguments of `PeriodOptions` type:
allows to set validator data and set `usePrev` to false for legacy proofs.
@troggy troggy merged commit ded6ec8 into addPrevPeriodToProofs Dec 23, 2019
@troggy troggy deleted the chore/patch-for-prev-hash branch December 23, 2019 16:08
troggy added a commit that referenced this pull request Dec 23, 2019
* Add previous period to proofs and roots if present.

* Add ability to produce and verify prevPeriod proofs. Also fix tests and fix backwards compatibility issue.

* chore: rework Period object constructor (#167)

* chore: rework Period object constructor

1. Set `usePrev` by default. BREAKING change
2. Accept optional third arguments of `PeriodOptions` type:
allows to set validator data and set `usePrev` to false for legacy proofs.

* docs: add period hashing schema

* PrevPeriod proof verification clarification

Co-authored-by: Kosta Korenkov <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant