-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The Node HSM signer fails with the following error when install resolves version 1.9.2 - 1.9.4 of the @noble/curves dependency:
RangeError [ERR_INVALID_ARG_VALUE]: The argument 'size' is invalid. Received NaN
These versions introduce several new APIs, deprecate some existing APIs, and also introduce a regression where the length in octets of the base point order n (previously available from p256.CURVE.nByteLength) is undefined. The buffer allocated for the signature returned by the HSM is calculated as nByteLength * 2. With versions of @noble/curves including this regression, the result is NaN, which causes the error above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working