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

ipa: unfold scalars #41

Closed jsign closed 1 year ago

jsign commented 1 year ago

This PR is doing some unfolding of the scalars to calculate the final basis.

jsign commented 1 year ago

As an extra double check of this, I ran a version that also had the "old way" and checked that both this unfolding style ended up with the same g0 and b0 values as the "iterative style".

Obviously, that code isn't in this PR because that is doing double work... but mentioning that I've also ran the code that way to detect "on the fly" if both logics were matching in the end result.