safrole traces: RAW kv state + bootstrap service implementation #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
safrole - traces: RAW kv state + state_snapshots: dev-friendly C1-C15 state
To support JAM implementers to derive each others state roots, extending to service related storage keys, here we publish a keyvals state trace format with a full range of 0x00..00 to 0xFF..FF in
traces
while leaving developer-friendlystate_snapshots
that focus on the C1-C15. With both state dumps, we can have teams collaborate:traces
traces
correspond to the JAM codec encoding of the data instate_snapshots
Implementation of bootstrap service code
main.rs
contains an implementation of the above bootstrap service, which is included in the genesis staterefine
service expects acodehash
(32 bytes) starting at0xFEFF0004
accumulate
does anew
and then awrite
bootstrapblob.pvm
has the disassembleable code (see belowpolkatool
) with "magic bytes"bootstrap.pvm
has the JAM-ready code blob (no magic bytes). We usedpolkatool
to do this, with PR #190 actually mappingmain.rs
into the above. See links: BuildingJAM Services in Rust for background
Our test does the following:
write
after "rho" is cleared (the service has been accumulated)