0xMiden / 0xMiden/protocol

Allow account code to be updated

Đang mở
#1,695 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
kernels
Ngôn ngữ chính
Rust
Star
132
Fork
167
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
110

Mô tả

It should be possible to update an account's code if it's type is `AccountType::RegularAccountUpdatableCode`.

We have a rudimentary setup for this in the tx kernel (e.g. `NEW_CODE_ROOT_PTR`) but no APIs for users to set it.

Updating the code to the new commitment is currently done in the epilogue so that the _next_ transaction would start using the new code.

This change would also require including the commitment to the new code in the account delta.

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.