0xPolygonZero / plonky2

Apache License 2.0
758 stars 281 forks source link

Regenerate tries upon Kernel failure during `hash_final_tries` #1424

Closed Nashtare closed 9 months ago

Nashtare commented 9 months ago

Adds some debugging output to proof logs in debug mode in case of KernelPanic error during the final phase, i.e. when computing the final trie roots and checking them against the provided ones.

Code mostly stolen from @4l0n50's previous work and refactored a little.

cc @BGluth

BGluth commented 9 months ago

Having the entire trie instead of just the root will be pretty helpful for debugging root mismatches. Glad you added this!

sonarcloud[bot] commented 9 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud