ref-fvm icon indicating copy to clipboard operation
ref-fvm copied to clipboard

Technical design: Wasm bytecode installation and actor deployment

Open raulk opened this issue 3 years ago • 1 comments

Even though we have prototyped a minimal actor deployment flow here: https://github.com/filecoin-project/ref-fvm/issues/444, we need a final design that takes into account aspects like:

  • How actor code CIDs will be linked into the state tree.
  • Which code metadata we support, how it's represented, and where is it stored (init actor or system actor?).
  • Potential chunking of bytecode, if any. (Probably out of scope for M2.)
  • Confirm InitActor enhancement to add install_code syscall.
  • Make the install_code syscall privileged (depends on https://github.com/filecoin-project/ref-fvm/issues/468).
  • Triggering bytecode validation and analysis, when, how, and costs.
  • Determining Wasm bytecode limits, see filecoin-project/ref-fvm#731.
  • Garbage collection of unused code entries?

raulk avatar Jun 13 '22 13:06 raulk

Potential chunking of bytecode, if any. (Probably out of scope for M2.)

Assuming EVM-only?

Garbage collection of unused code entries?

I assume we'll punt this to "probably never".

Stebalien avatar Jun 16 '22 00:06 Stebalien