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 摘要。