0xMiden / 0xMiden/node

Support `ProtocolConfig` (v0.17)

Đang mở
#2,546 10 bình luận 2 reaction 1 người được giao Được @kkovaacs nhận Xem trên GitHub
blocked rpc store
Ngôn ngữ chính
Rust
Star
104
Fork
138
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
56

Mô tả

In v0.17, fee asset ID is factored out into [`ProtocolConfig`](https://github.com/0xMiden/protocol/blob/528a500b0cb9ccf85091947131a60b722db846f9/crates/miden-protocol/src/protocol_config/mod.rs#L37), who's commitment is instead part of the block header.

Clients now need a way to get this configuration, at the very least to access the fee asset ID that they could previously get from the header.

Support therefore includes:

1. Storing this config
2. Verifying the commitment
3. Exposing this config via RPC

We are expecting this config to change _very_ rarely - on the order of months. (1) therefore makes sense to keep this in a separate table which can be looked up via commitment.

For (3) we need a new endpoint. The values can be heavily cached since they change so rarely, and are therefore valid for large block ranges. I imagine query by commitment makes the most sense.

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.