0xMiden / 0xMiden/protocol

Allow account code to be updated

Open
#1,695 4 comments 0 reactions 0 assignees View on GitHub
kernels
Dominant language
Rust
Stars
132
Forks
167
Avg merge
1d 23h
Merged PRs (30d)
110

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.