Skip to content

miniscript/types: check that timelock values aren't too large #246

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

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

darosior
Copy link
Contributor

Wonder if we should check that the timelock value is minimal too, what do you think?

This changes the ZeroTime error into an InvalidTime error and checks
that the disabling bit (most significant one) isn't set in the timelock
value.

We could also check the value is minimal, using the mask.

Signed-off-by: Antoine Poinsot <[email protected]>
Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK a3dd9fe . Thanks for doing this.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a3dd9fe

@apoelstra apoelstra merged commit 8887663 into rust-bitcoin:master Sep 8, 2021
@darosior darosior deleted the check_t_older branch February 7, 2022 09:00
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.

3 participants