Closed andreibancioiu closed 1 year ago
Unit tests written in Jest are known to break the behavior of instanceof Uint8Array, if the tested object is a buffer:
instanceof Uint8Array
https://github.com/jestjs/jest/issues/4422
Noble crypto functions rely on a correct behavior of instanceof Uint8Array.
In this PR, we perform an explicit conversion from Buffer to Uint8Array before calling functions of noble crypto.
Buffer
Uint8Array
Unit tests written in Jest are known to break the behavior of
instanceof Uint8Array
, if the tested object is a buffer:https://github.com/jestjs/jest/issues/4422
Noble crypto functions rely on a correct behavior of
instanceof Uint8Array
.In this PR, we perform an explicit conversion from
Buffer
toUint8Array
before calling functions of noble crypto.