This is a minor change to use the LibAuth V2 secp256k1 global instance.
Previously, this was being instantiated with instantiateSecp256k1() each time this function was called. In situations where this function is being called in parallel, it can result in WebASM out of memory errors in browser.
NOTE: Apologies, my npm install kept failing so I wasn't able to run tests for this.
This is a minor change to use the LibAuth V2
secp256k1
global instance.Previously, this was being instantiated with
instantiateSecp256k1()
each time this function was called. In situations where this function is being called in parallel, it can result inWebASM out of memory
errors in browser.NOTE: Apologies, my
npm install
kept failing so I wasn't able to run tests for this.Some background: https://t.me/libauth_devs/31
Signed-off-by: James Zuccon zuccon@gmail.com