feat(dursto): implement FromProof for Database#1077
Conversation
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (74.28%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1077 +/- ##
==========================================
- Coverage 90.12% 90.08% -0.04%
==========================================
Files 130 130
Lines 28337 28350 +13
Branches 28337 28350 +13
==========================================
+ Hits 25539 25540 +1
- Misses 2040 2047 +7
- Partials 758 763 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Benchmark results for revision e6fecd8:
Full results
Compare the results above with those for the default branch. |
emturner
left a comment
There was a problem hiding this comment.
After investigating also, I suspect that this won't quite work, as the stream deserialisers don't allow capturing the owned proof.
I have a follow-up, to tackle this. The simplest way forward is to just deserialise twice: once to get the in-memory proof tree, the second time to allow the capturing to work.
We should investigate eventually, how to do capturing for stream deserialisers too.
emturner
left a comment
There was a problem hiding this comment.
Approving to unblock the octez integration plumbing (in combination with the produce proof MR)
3683f58 to
42eb73c
Compare
42eb73c to
67ce8f1
Compare
What
Implements
FromProofforDatabase<KV, Verify>.Why
Needed in order to expose proof verification
How
This also required implementing
FromProofforMerkleLayerand its innerTree<VerifyNodeId>. The latter implementations are mostly based on theMerkleLayer<KV, Verify>::from_prooftest helper. This helper, along with the equivalentDatabaseone, are now removed.Manually Testing
Tasks for the Author