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

More Mary token examples: timelocks & sigs #1987

Merged
merged 2 commits into from
Nov 16, 2020

Conversation

JaredCorduan
Copy link
Contributor

In addition to the new examples for token minting with timelocks and signatures, I fixed two problems with the evaluation of RequireTimeExpire:

  • The comparison of the transaction time to live with the timelock expiration should be less than or equal to, not less than. What we want is that the transaction interval is contained in the timelock interval, possibly equal to. This is not to be confused with the fact that the time to live marks the first slot that the transaction is expired.
  • The comparison had the transaction value and the timelock value swapped.

Jared Corduan added 2 commits November 13, 2020 14:16
The evaluation of RequireTimeExpire had two problems:

- The comparison of the transaction time to live with the timelock
expiration should be less than or equal to, not less than.
What we want is that the transaction interval is contained in the
timelock interval, possibly equal to.  This is not to be confused with
the fact that the time to live marks the first slot that the
transaction is expired.
- The comparison had the transaction value and the timelock value
swapped.
Copy link
Contributor

@WhatisRT WhatisRT left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@JaredCorduan JaredCorduan merged commit 3966eee into master Nov 16, 2020
@iohk-bors iohk-bors bot deleted the jc/timelock-token-examples branch November 16, 2020 13:05
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.

2 participants