Skip to content

refactor decode() and ElementsExtension::ALL#7

Merged
ivanlele merged 5 commits intodevelopmentfrom
refactor/squash-boilerplate
Mar 4, 2026
Merged

refactor decode() and ElementsExtension::ALL#7
ivanlele merged 5 commits intodevelopmentfrom
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
@topologoanatom topologoanatom marked this pull request as ready for review March 4, 2026 11:19
@ivanlele ivanlele changed the base branch from master to development March 4, 2026 11:31
@ivanlele ivanlele merged commit 3e6e63c into development Mar 4, 2026
@ivanlele ivanlele deleted the refactor/squash-boilerplate branch March 4, 2026 11:32
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