Skip to content

refactor decode() and ElementsExtension::ALL#7

Draft
topologoanatom wants to merge 3 commits intomasterfrom
refactor/squash-boilerplate
Draft

refactor decode() and ElementsExtension::ALL#7
topologoanatom wants to merge 3 commits intomasterfrom
refactor/squash-boilerplate

Conversation

@topologoanatom
Copy link
Collaborator

@topologoanatom topologoanatom commented Feb 10, 2026

Changes

  • Populated the ElementsExtension::ALL array by enumerating all Elements jets via a const function and manually pushing custom jets.
  • Refactored decode() to call the original decode() methods for Elements jets while hardcoding the tree path for custom jets. Underlying implementation is fragile since uses unsafe reads due to the lack of Clone.

`decode()` depends on adding `Clone` trait bound
to rust-simplicity `BitIter` struct.
@topologoanatom topologoanatom self-assigned this Feb 10, 2026
@topologoanatom topologoanatom marked this pull request as draft February 13, 2026 08:41
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