Trust-Machines / p256k1

Wrappers around secp256k1 to expose the underlying math, specifically unwrapped points and scalars with multiexponentiation
Apache License 2.0
12 stars 6 forks source link

Move scratch space into thread local storage #16

Open xoloki opened 1 year ago

xoloki commented 1 year ago

Currently Point::multimult creates a scratch space of a fixed size (2^20) on every run. This works fine, but wastes cycles. If we move it into thread local storage we will reclaim these cycles.