Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3.0.0 fails tests #6

Open
hackergrrl opened this issue Sep 22, 2024 · 0 comments
Open

Version 3.0.0 fails tests #6

hackergrrl opened this issue Sep 22, 2024 · 0 comments

Comments

@hackergrrl
Copy link

Here is my npm test output:

> [email protected] pretest
> standard


> [email protected] test
> tape tests/*.js

TAP version 13
# handlers with static keys
ok 1 responder gets ephemeral key first
ok 2 initiator gets ephemeral key after first message
ok 3 initiator gets static key with ephemeral key
ok 4 should be equivalent
node:internal/validators:177
    throw new ERR_INVALID_ARG_TYPE(name, 'number', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "size" argument must be of type number. Received undefined
    at validateNumber (node:internal/validators:177:11)
    at __node_internal_ (node:buffer:393:3)
    at Function.alloc (node:buffer:401:3)
    at SimpleHandshake._finish (/home/kira/forks/simple-handshake/index.js:125:33)
    at SimpleHandshake.send (/home/kira/forks/simple-handshake/index.js:108:39)
    at rtt (/home/kira/forks/simple-handshake/tests/test.js:163:10)
    at /home/kira/forks/simple-handshake/tests/test.js:182:16
    at ondone (/home/kira/forks/simple-handshake/index.js:87:5)
    at SimpleHandshake.onstatickey (/home/kira/forks/simple-handshake/tests/test.js:130:7)
    at checkStatic (/home/kira/forks/simple-handshake/index.js:75:19) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.10.0

I believe this is being caused by emilbayes/noise-protocol#18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant