0xMiden/protocol

Optimize input note num inputs/assets memory layout

开放

#2,256 创建于 2026年1月12日

 (2 条评论) (0 个反应) (1 位负责人)Rust (139 个派生)github user discovery
good first issuekernels

仓库指标

星标
 (123 个星标)
PR 合并指标
 (平均合并 5天 11小时) (30 天内合并 110 个 PR)

描述

After #2109 is closed (to avoid merge conflicts), we should be able to make a tiny PR that moves these two constants closer together:

https://github.com/0xMiden/miden-base/blob/eee0e8450b825857e7d56ffebfaa269378a61aca/crates/miden-protocol/src/transaction/kernel/memory.rs#L388-L389

It should be possible to do:

pub const INPUT_NOTE_NUM_INPUTS_OFFSET: MemoryOffset = 36;
pub const INPUT_NOTE_NUM_ASSETS_OFFSET: MemoryOffset = 37;
pub const INPUT_NOTE_ASSETS_OFFSET: MemoryOffset = 40

This applies to memory.masm in the same way.

Context: https://github.com/0xMiden/miden-base/pull/2249#discussion_r2679280006

贡献者指南