Skip to content

feat: add annex to env#345

Open
stringhandler wants to merge 1 commit intoBlockstreamResearch:masterfrom
stringhandler:feat/add-annex
Open

feat: add annex to env#345
stringhandler wants to merge 1 commit intoBlockstreamResearch:masterfrom
stringhandler:feat/add-annex

Conversation

@stringhandler
Copy link
Contributor

Add the annex to the transaction environment so that it is included in hashes created by jets.

This is almost entirely coded by @delta1 but is required to add functionality to hal-simplicity and can be seen/tested here https://github.com/stringhandler/hal-simplicity/tree/feat/add-annex.

@delta1
Copy link
Contributor

delta1 commented Feb 24, 2026

LGTM I copied most of #331 for this. Gonna take a look at fixing CI first

@apoelstra
Copy link
Collaborator

CI is passing -- can this be undrafted?

@stringhandler stringhandler marked this pull request as ready for review March 3, 2026 18:00
@stringhandler
Copy link
Contributor Author

done

@apoelstra
Copy link
Collaborator

In 7ce98ca:

Please separate out the typo fixes and the serde stuff (is this necessary at all?) into separate commits.

annex: inp_data
.annex
.as_ref()
.map(|annex| c_elements::CRawBuffer::new(annex))
Copy link
Collaborator

Choose a reason for hiding this comment

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

In 7ce98ca:

This creates a dangling raw pointer and is unsound.

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