0xMiden / 0xMiden/protocol

Storage and storage schemas can diverge when storage layout is defined dynamically

Offen
#3,772 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
standards
Vorherrschende Sprache
Rust
Sterne
132
Forks
167
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
110

Beschreibung

We have some components where storage layout is dynamic (i.e., whether some storage slots are present depends on values in other storage slots). This makes storage schemas (which are defined statically) diverge from the storage itself under some conditions (see https://github.com/0xMiden/protocol/pull/3648/changes#r3848434390). Potential ways to address it:

- Treat storage schemas as a superset of possible storage state (that's kind of how it works now).
- Move away from the dynamic storage pattern (not sure what the exact impact here would be).
- Make storage schemas dynamic as well (tricky to do for static definitions via TOML files).

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.