Skip to content

feat: add support for Simplicity version checking in taproot environment#1

Open
stringhandler wants to merge 1 commit into
feat/add-output-return-jetsfrom
feat/add-output-jets2
Open

feat: add support for Simplicity version checking in taproot environment#1
stringhandler wants to merge 1 commit into
feat/add-output-return-jetsfrom
feat/add-output-jets2

Conversation

@stringhandler
Copy link
Copy Markdown
Owner

NOTE: built on BlockstreamResearch#339

I opened a separate PR so that changes related to the versioning can be discussed separately.

Here is a possible, simple solution to versioning. Added a check for the tapleaf version. If it is not 0xc2 (version to be decided), the jet will fail. This is should be similar in practice to failing when the jet is not found.

I created a function to map tapleaf versions to a monotonically increasing version so that a min_version can be specified to make adding future jets easier.

Adds a check for jets that have been added after a deployed version of
simplicity. This check can be added to new jets using a minimum version.
If the version is lower, the jet will automatically fail.
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