Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fip-0031: prepare for move to Last Call. #328

Merged
merged 2 commits into from
Apr 1, 2022

Conversation

raulk
Copy link
Member

@raulk raulk commented Mar 21, 2022

This is a heavy editing pass that should get this FIP closer to Last Call. We're missing the final content-addressed Code CIDs, but these won't be available until later. And they are simple parameters that don't affect the body of the changes proposed in this FIP.

@raulk raulk force-pushed the raulk/finalize-fip-0031 branch from 879dbc9 to 5142ead Compare March 21, 2022 00:40
CodeCid = Cid(IPLD_RAW_CODEC, Mh(BLAKE2B-256, $wasm_bytecode))
```

### Sourcing built-in actors Wasm bytecode
Copy link
Member Author

@raulk raulk Mar 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vyzo This FIP interests you, but specifically this part.

CodeCid = Cid(IPLD_RAW_CODEC, Mh(BLAKE2B-256, $wasm_bytecode))
```

### Sourcing built-in actors Wasm bytecode
Copy link
Member Author

@raulk raulk Mar 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vyzo This FIP interests you, but specifically this part.

@kaitlin-beegle
Copy link
Contributor

Flagged @vyzo for review (see: Slack thread) per Raul's tags above.

Copy link
Member

@anorth anorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This'll be fine after reconciliation with #329

content-addressing. The current _synthetic_ actor CodeCIDs will migrate to CIDs
that hash over their actual Wasm bytecode.
This FIP introduces no functional actor behaviour changes; however, some exit
codes have been adjusted.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps reference FIP-0032 as another change that is expected to be atomic with this one.

FIPS/fip-0031.md Outdated
https://github.com/filecoin-project/canonical-actors (TBD).
- The CARv1 header is single-rooted.
- The root CID resolves to a data structure that acts like a _Manifest_.
- The _Manifest_ type is an IPLD `Map<String, Cid>`. Every entry represents a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Stebalien @vyzo Did we chance to a vector of tuples?

| `fil/7/verifiedregistry` | TBD |
```rust
struct State {
builtin_actor_registry: Cid, // Map<String, Cid>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref #329

### Optional removal of intrinsic VM from Filecoin client codebases
#### VM atomic switch

Exactly at the upgrade epoch `N`, message execution will switch from the legacy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you specify "before" or "after" rather than "at"? There's been confusion in the past about when migrations happen (and we should follow the past behaviour)


## Implementation

WIP.
This FIP will be implemented in the reference Filecoin client implementation:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have historically tried to avoid elevating any implementation as "reference". Even if it is de-facto, it's not a state we wish to prolong.

Co-authored-by: raulk <raul@protocol.ai>
@raulk raulk closed this Mar 31, 2022
@raulk raulk reopened this Mar 31, 2022
@raulk
Copy link
Member Author

raulk commented Mar 31, 2022

@vyzo's PR is merged. This is ready to be merged too upon approval.

@kaitlin-beegle kaitlin-beegle merged commit d448f50 into master Apr 1, 2022
@kaitlin-beegle kaitlin-beegle deleted the raulk/finalize-fip-0031 branch April 1, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants