0xMiden / 0xMiden/rust-sdk

`InOrderIndex::idx` is `usize`

Đang mở
#1,691 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
blocked question
Ngôn ngữ chính
Rust
Star
78
Fork
129
Merge trung bình
4 ngày 14 giờ
Pull request đã merge (30 ngày)
52

Mô tả

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).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.