You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
it seems to me, that some of the (not all) functions do not actually return Uint8Arrays but Buffers, resulting in checks like nacl.random_bytes(16) instanceof Uint8Array failing (nacl.crypto_hash(nacl.random_bytes(16)) instanceof Uint8Array passes fine).
There are some parts of my application, where I rely on the objects actually being of type Uint8Array. It would be nice, if the documentation would more clearly reflect, where Uint8Array is to be expected, and where Buffers are.
Thanks in advance!
r
The text was updated successfully, but these errors were encountered:
Hello,
it seems to me, that some of the (not all) functions do not actually return Uint8Arrays but Buffers, resulting in checks like nacl.random_bytes(16) instanceof Uint8Array failing (nacl.crypto_hash(nacl.random_bytes(16)) instanceof Uint8Array passes fine).
There are some parts of my application, where I rely on the objects actually being of type Uint8Array. It would be nice, if the documentation would more clearly reflect, where Uint8Array is to be expected, and where Buffers are.
Thanks in advance!
r
The text was updated successfully, but these errors were encountered: