crate-crypto / go-ipa

A Go implementation of cryptographic primitives for Verkle Trees
https://verkle.dev
Apache License 2.0
32 stars 14 forks source link

add (de)serialization methods to the precomputation tables #13

Closed gballet closed 2 years ago

gballet commented 2 years ago

Generating the precomputation tables for the Lagrange points takes a lot of time. This causes geth to be seemingly idle for 2 to 5 minutes, giving the impression that a problem occurred. This is true, even if the verkle tree isn't activated in geth. This is a show-stopper for merging the geth PR.

As a mitigation strategy, I'd like to be able to generate it only once, and then store that data to the database, to be reloaded later. This PR therefore adds a DeserializePrecomputedLagrange function, that can be used to load said precomputed points from the database.

Trigger Warning: contains AmericaniZed (AmericaniZee?) spelling.