brannondorsey / chattervox

📡 An AX.25 packet radio chat protocol with support for digital signatures and binary compression. Like IRC over radio waves.
Other
748 stars 36 forks source link

Unhandled promise rejection. Error: Unknown point format #11

Open brannondorsey opened 5 years ago

brannondorsey commented 5 years ago

I need to look into this more, but I believe this occurs in an invalid digital signature.

(node:19671) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:19671) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:19671) UnhandledPromiseRejectionWarning: Error: Unknown point format
    at ShortCurve.decodePoint (/home/braxxox/Documents/code/chattervox/node_modules/elliptic/lib/elliptic/curve/base.js:285:9)
    at KeyPair._importPublic (/home/braxxox/Documents/code/chattervox/node_modules/elliptic/lib/elliptic/ec/key.js:99:28)
    at new KeyPair (/home/braxxox/Documents/code/chattervox/node_modules/elliptic/lib/elliptic/ec/key.js:17:10)
    at Function.fromPublic (/home/braxxox/Documents/code/chattervox/node_modules/elliptic/lib/elliptic/ec/key.js:25:10)
    at EC.keyFromPublic (/home/braxxox/Documents/code/chattervox/node_modules/elliptic/lib/elliptic/ec/index.js:50:18)
    at Keystore.verify (/home/braxxox/Documents/code/chattervox/build/Keystore.js:121:28)
    at Messenger.<anonymous> (/home/braxxox/Documents/code/chattervox/build/Messenger.js:111:46)
    at Generator.next (<anonymous>)
    at fulfilled (/home/braxxox/Documents/code/chattervox/build/Messenger.js:4:58)
    at <anonymous>
(node:19671) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)