0xMiden / 0xMiden/rust-sdk

`InOrderIndex::idx` is `usize`

未关闭
#1,691 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
blocked question
主要语言
Rust
星标
78
派生
129
平均合并
4 天 14 小时
30 天内合并 PR
52

描述

We want to compile the client to both WASM environments and native environments. The blockchain MMR is designed to have `u32::MAX` leaves, which makes the max `idx` of `InOrderIndex` go over that limit.
In WASM, `usize` is 32-bit so we are inherently limited when we need to store/retrieve nodes from the database.
This is something to tackle upstream on the crypto crate, but AFAIK, this doesn't block us for the next ~2^31 blocks which is many years away. Still, adding this issue for visibility (and see if anyone has any comments).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。