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

Reserve a section of the swingstore for the host #5349

Closed
mhofman opened this issue May 11, 2022 · 0 comments · Fixed by #5370
Closed

Reserve a section of the swingstore for the host #5349

mhofman opened this issue May 11, 2022 · 0 comments · Fixed by #5370
Assignees
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request SwingSet package: SwingSet
Milestone

Comments

@mhofman
Copy link
Member

mhofman commented May 11, 2022

What is the Problem Being Solved?

Currently host cosmic-swingset uses the key cosmos/meta of the swingstore to save it's own state just before committing. We'd like to expand what is currently stored by the host, and keep it more structured.

supports #5350

Description of the Design

Reserve the prefix host. for host operations. Swingset should not attempt to read or write in those values.

Security Considerations

It's probably sufficient to have this simply a documented contract between the host and Swingset, without explicit enforcement. The writes performed by the host are already not part of the crank buffer or activityhash computation performed by swingset, but we could add a check there for good measure.

Test Plan

TBD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request SwingSet package: SwingSet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants