Skip to content

refactor: make tx kernel procedure offset constants public#2375

Merged
PhilippGackstatter merged 5 commits into0xMiden:nextfrom
Farukest:feat/issue-2342-public-kernel-offsets
Feb 9, 2026
Merged

refactor: make tx kernel procedure offset constants public#2375
PhilippGackstatter merged 5 commits into0xMiden:nextfrom
Farukest:feat/issue-2342-public-kernel-offsets

Conversation

@Farukest
Copy link
Copy Markdown
Contributor

  • Move kernel_proc_offsets.masm from protocol/ to shared_utils/util/
  • Replace getter procedures with pub const declarations
  • Update all protocol files to import constants directly
  • Update build.rs regex to handle pub const syntax

Closes #2342

@Farukest Farukest force-pushed the feat/issue-2342-public-kernel-offsets branch from 454ef86 to aa13e9c Compare January 31, 2026 16:15
…he kernel

This exports the kernel procedure offset constants so they can be used
by code outside the kernel, such as note scripts that need to call
kernel procedures dynamically.

Changes:
- Make offset constants public in kernel_proc_offsets.masm
- Update build.rs regex to handle pub const declarations

Closes 0xMiden#2342
@Farukest Farukest force-pushed the feat/issue-2342-public-kernel-offsets branch from aa13e9c to d240e3c Compare February 2, 2026 16:50
Resolve merge conflicts with recent changes:
- 0xMiden#2369: Updated offset numbers for new get_asset API
- 0xMiden#2377: Keep pub const prefix for all offset constants
Copy link
Copy Markdown
Contributor

@PhilippGackstatter PhilippGackstatter 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, thanks!

@PhilippGackstatter PhilippGackstatter merged commit b9fbf9b into 0xMiden:next Feb 9, 2026
15 checks passed
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Mar 9, 2026
)

* feat: make kernel procedure offset constants public for use outside the kernel

This exports the kernel procedure offset constants so they can be used
by code outside the kernel, such as note scripts that need to call
kernel procedures dynamically.

Changes:
- Make offset constants public in kernel_proc_offsets.masm
- Update build.rs regex to handle pub const declarations

Closes 0xMiden#2342

* refactor: replace accessor procedures with direct public constant usage

---------

Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
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.

Make tx kernel procedure offset constants public

2 participants