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

DivideOnDomain avoid unnecessary allocations #5

Open kevaundray opened 3 years ago

kevaundray commented 3 years ago

DivideOnDomain is called multiple times and each time, we allocate a slice to hold the quotient. Instead, we should pass in a pointer and only allocate once