ChainSafe / blst-ts

Typescript wrapper for https://github.com/supranational/blst native bindings, a highly performant BLS12-381 signature library
Other
18 stars 13 forks source link

Fix point mutation on aggregate #38

Closed dapplion closed 3 years ago

dapplion commented 3 years ago

When aggregating pubkeys and signatures the first point is used as aggregate to add to, but it's not cloned causing mutation. If that point is used afterwards it will no longer hold the expected key potentially causing valid signatures to be checked as invalid