dazoe / ed25519 Goto Github PK
View Code? Open in Web Editor NEWAn Ed25519 implementation for node.js
License: BSD 2-Clause "Simplified" License
An Ed25519 implementation for node.js
License: BSD 2-Clause "Simplified" License
In Windows, you get an install error if you are installing on a system with OpenSSL Version 1.1 or later installed. The problem is that OpenSSL has changed the name of a library file. I believe this can be fixed in the bindings.gyp file by changing line 88
from:
'-l<(openssl_root)/lib/libeay32.lib',
to:
'-l<(openssl_root)/lib/libcrypto.lib',
Or perhaps by having a test to check which of these libraries (if any) are installed and then select the installed one.
Is it necessary to even explicitly include this library? ed25519 seems to compile / install even if this is commented out.
Why do you use
mysecret[0] &= 248;
mysecret[31] &= 63;
mysecret[31] |= 64;
to calculate the private key in crypto_sign_keypair when Bernstein, uses
mysecret[0] &= 248;
mysecret[31] &= 127;
mysecret[31] |= 64;
Please add the ability to specify the private key (previosly stored somewhere else) as well as getting the Public key derrived from the private that was manually set.
The installations fails on Travis running Ubuntu 12.04.5 LTS. Works fine locally on macOS.
Here's the full crash and system information on Travis: https://travis-ci.org/andrewda/node-securelogin/jobs/244099347
make: Entering directory `/home/travis/build/andrewda/node-securelogin/node_modules/ed25519/build'
CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
CC(target) Release/obj.target/ed25519/src/ed25519/open.o
CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
CXX(target) Release/obj.target/ed25519/src/ed25519.o
In file included from ../src/ed25519.cc:4:0:
../../nan/nan.h:45:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /home/travis/.node-gyp/8.1.2/include/node/node.h:63:0,
from ../src/ed25519.cc:1:
/home/travis/.node-gyp/8.1.2/include/node/v8.h:316:1: error: expected unqualified-id before ‘using’
/home/travis/.node-gyp/8.1.2/include/node/v8.h:808:1: error: expected unqualified-id before ‘using’
/home/travis/.node-gyp/8.1.2/include/node/v8.h:6356:35: error: ‘virtual v8::EmbedderHeapTracer::~EmbedderHeapTracer()’ declared virtual cannot be defaulted in the class body
In file included from ../../nan/nan.h:192:0,
from ../src/ed25519.cc:4:
../../nan/nan_maybe_43_inl.h:13:1: error: expected unqualified-id before ‘using’
../../nan/nan_maybe_43_inl.h:16:1: error: expected unqualified-id before ‘using’
../../nan/nan_maybe_43_inl.h:19:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:24:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:29:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:37:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:45:1: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:52:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:60:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:71:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:79:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:87:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:96:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:105:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:115:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:125:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:141:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:149:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:155:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:164:1: error: ‘Maybe��� does not name a type
../../nan/nan_maybe_43_inl.h:171:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:179:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:186:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:194:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:202:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:210:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:218:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:226:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:234:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:244:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:254:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:266:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:277:1: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:284:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:290:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:296:8: error: ‘Maybe’ does not name a type
../../nan/nan_maybe_43_inl.h:302:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_maybe_43_inl.h:326:8: error: ‘MaybeLocal’ does not name a type
In file included from ../../nan/nan.h:197:0,
from ../src/ed25519.cc:4:
../../nan/nan_converters.h:14:11: error: ‘MaybeLocal’ does not name a type
../../nan/nan_converters.h:16:56: error: ‘Maybe’ does not name a type
../../nan/nan_converters.h:26:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:27:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:28:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:29:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:30:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:31:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:32:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:42:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:43:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:44:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:45:1: error: ‘return_t’ does not name a type
../../nan/nan_converters.h:46:1: error: ‘return_t’ does not name a type
In file included from ../../nan/nan_converters.h:59:0,
from ../../nan/nan.h:197,
from ../src/ed25519.cc:4:
../../nan/nan_converters_43_inl.h:22:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Boolean>’ does not name a type
../../nan/nan_converters_43_inl.h:23:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Number>’ does not name a type
../../nan/nan_converters_43_inl.h:24:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::String>’ does not name a type
../../nan/nan_converters_43_inl.h:25:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Object>’ does not name a type
../../nan/nan_converters_43_inl.h:26:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Integer>’ does not name a type
../../nan/nan_converters_43_inl.h:27:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Uint32>’ does not name a type
../../nan/nan_converters_43_inl.h:28:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<v8::Int32>’ does not name a type
../../nan/nan_converters_43_inl.h:40:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<bool>’ does not name a type
../../nan/nan_converters_43_inl.h:41:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<double>’ does not name a type
../../nan/nan_converters_43_inl.h:42:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<long int>’ does not name a type
../../nan/nan_converters_43_inl.h:43:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<unsigned int>’ does not name a type
../../nan/nan_converters_43_inl.h:44:1: error: ‘return_t’ in ‘struct Nan::imp::ToFactory<int>’ does not name a type
In file included from ../../nan/nan.h:198:0,
from ../src/ed25519.cc:4:
../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Integer]’:
../../nan/nan_new.h:21:32: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../nan/nan_new.h:21:32: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Int32]’:
../../nan/nan_new.h:28:30: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../nan/nan_new.h:28:30: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: In function ‘v8::Local<T> Nan::imp::To(v8::Local<v8::Integer>) [with T = v8::Uint32]’:
../../nan/nan_new.h:35:31: error: no matching function for call to ‘To(v8::Local<v8::Integer>&)’
../../nan/nan_new.h:35:31: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan_new.h: At global scope:
../../nan/nan_new.h:43:11: error: ‘MaybeLocal’ does not name a type
../../nan/nan_new.h:75:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:141:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:147:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:148:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:160:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:161:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:162:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:163:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:165:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:166:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:182:17: error: ‘return_t’ does not name a type
../../nan/nan_new.h:183:17: error: ‘return_t’ does not name a type
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:198,
from ../src/ed25519.cc:4:
../../nan/nan_implementation_12_inl.h:61:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::Date>’ does not name a type
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../nan/nan_implementation_12_inl.h:91:46: error: ‘NewInstance’ was not declared in this scope
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::FunctionTemplate>::return_t Nan::imp::Factory<v8::FunctionTemplate>::New(Nan::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>)’:
../../nan/nan_implementation_12_inl.h:119:48: error: ‘NewInstance’ was not declared in this scope
../../nan/nan_implementation_12_inl.h: At global scope:
../../nan/nan_implementation_12_inl.h:198:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::RegExp>’ does not name a type
../../nan/nan_implementation_12_inl.h:221:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::Script>’ does not name a type
../../nan/nan_implementation_12_inl.h:231:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::Script>’ does not name a type
../../nan/nan_implementation_12_inl.h:265:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:272:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:278:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:285:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:291:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:296:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_implementation_12_inl.h:344:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::UnboundScript>’ does not name a type
../../nan/nan_implementation_12_inl.h:351:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::UnboundScript>’ does not name a type
In file included from ../../nan/nan.h:198:0,
from ../src/ed25519.cc:4:
../../nan/nan_new.h:293:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:299:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:305:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:311:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:317:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:323:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:329:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::String>’ does not name a type
../../nan/nan_new.h:335:1: error: ‘return_t’ in ‘struct Nan::imp::Factory<v8::RegExp>’ does not name a type
In file included from ../src/ed25519.cc:4:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::Error(const char*)’:
../../nan/nan.h:664:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowError(const char*)’:
../../nan/nan.h:664:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::RangeError(const char*)’:
../../nan/nan.h:665:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowRangeError(const char*)’:
../../nan/nan.h:665:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::ReferenceError(const char*)’:
../../nan/nan.h:666:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowReferenceError(const char*)’:
../../nan/nan.h:666:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::SyntaxError(const char*)’:
../../nan/nan.h:667:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowSyntaxError(const char*)’:
../../nan/nan.h:667:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::TypeError(const char*)’:
../../nan/nan.h:668:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::ThrowTypeError(const char*)’:
../../nan/nan.h:668:3: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: At global scope:
../../nan/nan.h:676:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:698:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:713:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:725:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:741:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:747:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:759:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:770:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:780:10: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../../nan/nan.h:1533:41: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1551:45: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘virtual void Nan::AsyncWorker::HandleErrorCallback()’:
../../nan/nan.h:1587:58: error: no matching function for call to ‘New(const char*)’
../../nan/nan.h:1587:58: note: candidates are:
../../nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../../nan/nan.h: In function ‘void Nan::imp::SetMethodAux(T, v8::Local<v8::String>, v8::Local<v8::FunctionTemplate>, ...)’:
../../nan/nan.h:1902:34: error: there are no arguments to ‘GetFunction’ that depend on a template parameter, so a declaration of ‘GetFunction’ must be available [-fpermissive]
../../nan/nan.h:1902:34: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../nan/nan.h: In function ‘void Nan::SetMethod(HandleType<T>, const char*, Nan::FunctionCallback)’:
../../nan/nan.h:1914:45: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate>, const char*, Nan::FunctionCallback)’:
../../nan/nan.h:1929:45: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
../../nan/nan.h:1954:47: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../../nan/nan.h:1997:51: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::PropertyGetterCallback, Nan::PropertySetterCallback, Nan::PropertyQueryCallback, Nan::PropertyDeleterCallback, Nan::PropertyEnumeratorCallback, v8::Local<v8::Value>)’:
../../nan/nan.h:2056:47: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, Nan::IndexGetterCallback, Nan::IndexSetterCallback, Nan::IndexQueryCallback, Nan::IndexDeleterCallback, Nan::IndexEnumeratorCallback, v8::Local<v8::Value>)’:
../../nan/nan.h:2126:47: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../nan/nan.h:2181:47: error: ‘NewInstance’ was not declared in this scope
../../nan/nan.h: In function ‘void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate>, Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../nan/nan.h:2203:47: error: ‘NewInstance’ was not declared in this scope
In file included from ../../nan/nan.h:2226:0,
from ../src/ed25519.cc:4:
../../nan/nan_private.h: At global scope:
../../nan/nan_private.h:12:8: error: ‘Maybe’ does not name a type
../../nan/nan_private.h:25:8: error: ‘MaybeLocal’ does not name a type
../../nan/nan_private.h:44:8: error: ‘Maybe’ does not name a type
../../nan/nan_private.h:59:8: error: ‘Maybe’ does not name a type
In file included from ../src/ed25519.cc:4:0:
../../nan/nan.h: In function ‘void Nan::Export(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE, const char*, Nan::FunctionCallback)’:
../../nan/nan.h:2236:35: error: no matching function for call to ‘New(const char*&)’
../../nan/nan.h:2236:35: note: candidates are:
../../nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../../nan/nan.h:2237:47: error: ‘GetFunction’ was not declared in this scope
../../nan/nan.h:2237:65: error: ‘Set’ was not declared in this scope
../../nan/nan.h:2237:65: note: suggested alternative:
/home/travis/.node-gyp/8.1.2/include/node/v8.h:3396:17: note: ‘v8::Set’
../../nan/nan.h: In constructor ‘Nan::Tap::Tap(v8::Local<v8::Value>)’:
../../nan/nan.h:2246:30: error: no matching function for call to ‘To(v8::Local<v8::Value>&)’
../../nan/nan.h:2246:30: note: candidate is:
../../nan/nan_converters.h:53:38: note: template<class T> typename Nan::imp::ToFactory::return_t Nan::To(v8::Local<v8::Value>)
../../nan/nan.h: In member function ‘void Nan::Tap::ok(bool, const char*)’:
../../nan/nan.h:2261:33: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: In member function ‘void Nan::Tap::pass(const char*)’:
../../nan/nan.h:2268:30: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../../nan/nan.h: At global scope:
../../nan/nan.h:2292:17: error: ‘MaybeLocal’ does not name a type
../../nan/nan.h:2297:40: error: ‘MaybeLocal’ was not declared in this scope
../../nan/nan.h:2297:40: note: suggested alternative:
/home/travis/.node-gyp/8.1.2/include/node/v8.h:114:7: note: ‘v8::MaybeLocal’
../../nan/nan.h:2297:52: error: template argument 1 is invalid
../../nan/nan.h:2297:54: error: expected unqualified-id before ‘>’ token
../../nan/nan.h:2306:8: error: ‘MaybeLocal’ does not name a type
In file included from ../../nan/nan.h:2317:0,
from ../src/ed25519.cc:4:
../../nan/nan_json.h:75:3: error: ‘MaybeLocal’ in namespace ‘Nan’ does not name a type
../../nan/nan_json.h:97:3: error: ‘MaybeLocal’ in namespace ‘Nan’ does not name a type
../../nan/nan_json.h:110:3: error: ‘MaybeLocal’ in namespace ‘Nan’ does not name a type
../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE MakeKeypair(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ed25519.cc:24:37: error: ‘NewBuffer’ is not a member of ‘Nan’
../src/ed25519.cc:28:36: error: ‘NewBuffer’ is not a member of ‘Nan’
../src/ed25519.cc:35:36: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../src/ed25519.cc:36:37: error: ‘Nan::imp::FactoryBase<v8::Boolean>::return_t’ has no member named ‘ToLocalChecked’
../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Sign(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ed25519.cc:68:89: error: no matching function for call to ‘New(const char [11])’
../src/ed25519.cc:68:89: note: candidates are:
../../nan/nan_implementation_12_inl.h:385:21: note: template<class T, class M> v8::Local<T> Nan::New(const v8::Persistent<S, M>&)
../../nan/nan_implementation_12_inl.h:390:21: note: template<class T, class M> v8::Local<T> Nan::New(const Nan::Persistent<T, M>&)
../../nan/nan_implementation_12_inl.h:395:21: note: template<class T> v8::Local<T> Nan::New(const Nan::Global<T>&)
../../nan/nan_new.h:201:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New()
../../nan/nan_new.h:207:1: note: template<class T, class A0> typename Nan::imp::Factory<T>::return_t Nan::New(A0)
../../nan/nan_new.h:213:1: note: template<class T, class A0, class A1> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1)
../../nan/nan_new.h:219:1: note: template<class T, class A0, class A1, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2)
../../nan/nan_new.h:225:1: note: template<class T, class A0, class A1, class A2, class A3> typename Nan::imp::Factory<T>::return_t Nan::New(A0, A1, A2, A3)
../../nan/nan_new.h:237:1: note: template<class T> typename Nan::imp::Factory::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>)
../../nan/nan_new.h:245:1: note: template<class T, class A2> typename Nan::imp::Factory<T>::return_t Nan::New(Nan::FunctionCallback, v8::Local<v8::Value>, A2)
../src/ed25519.cc:76:2: error: ‘Handle’ was not declared in this scope
../src/ed25519.cc:76:15: error: expected primary-expression before ‘>’ token
../src/ed25519.cc:76:17: error: ‘message’ was not declared in this scope
../src/ed25519.cc:83:36: error: ‘NewBuffer’ is not a member of ‘Nan’
../src/ed25519.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Verify(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ed25519.cc:105:2: error: ‘Handle’ was not declared in this scope
../src/ed25519.cc:105:15: error: expected primary-expression before ‘>’ token
../src/ed25519.cc:105:17: error: ‘message’ was not declared in this scope
../src/ed25519.cc:106:15: error: expected primary-expression before ‘>’ token
../src/ed25519.cc:106:17: error: ‘signature’ was not declared in this scope
../src/ed25519.cc:107:15: error: expected primary-expression before ‘>’ token
../src/ed25519.cc:107:17: error: ‘publicKey’ was not declared in this scope
../src/ed25519.cc: At global scope:
../src/ed25519.cc:120:17: error: variable or field ���InitModule’ declared void
../src/ed25519.cc:120:17: error: ‘Handle’ was not declared in this scope
../src/ed25519.cc:120:30: error: expected primary-expression before ‘>’ token
../src/ed25519.cc:120:32: error: ‘exports’ was not declared in this scope
../src/ed25519.cc:126:1: error: ‘InitModule’ was not declared in this scope
make: *** [Release/obj.target/ed25519/src/ed25519.o] Error 1
make: Leaving directory `/home/travis/build/andrewda/node-securelogin/node_modules/ed25519/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/travis/.nvm/versions/node/v8.1.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.8.12-040812-generic
gyp ERR! command "/home/travis/.nvm/versions/node/v8.1.2/bin/node" "/home/travis/.nvm/versions/node/v8.1.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/travis/build/andrewda/node-securelogin/node_modules/ed25519
gyp ERR! node -v v8.1.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/travis/.npm/_logs/2017-06-17T23_49_57_360Z-debug.log
Now, I don't know if this is the right place, but someone, somewhere along the twisted chain of NodeJS dependencies, decided it was a good idea to hard-code a library's path.
I installed OpenSSL, yet I got an error.
LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL-Win64\lib\libeay32.lib' [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
Moreover, the library changed name with an updated OpenSSL version. Even if one was to install OpenSSL the way you want, it still wouldn't work because they'd need to install that one version that works.
Here's the full logs.
yarn install v1.15.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-markdown-editor > [email protected]" has incorrect peer dependency "react@^15.0.2".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.6.0".
warning " > [email protected]" has unmet peer dependency "app-builder-lib@~20.40.0".
[4/4] Building fresh packages...
[1/3] ⡀ tiny-secp256k1
[2/3] ⢀ ed25519
error C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Users\natob\.windows-build-tools\python27\python.exe
gyp info spawn args [ 'C:\\Users\\natob\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\natob\\Documents\\GitHub\\GetEpona\\Epona-js\\node_modules\\ed25519\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\natob\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\natob\\.node-gyp\\11.14.0\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\natob\\.node-gyp\\11.14.0',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\natob\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\natob\\.node-gyp\\11.14.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\natob\\Documents\\GitHub\\GetEpona\\Epona-js\\node_modules\\ed25519',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\natob\\Documents\\GitHub\\GetEpona\\Epona-js\\node_modules\\ed25519\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
keypair.c
sign.c
open.c
crypto_verify_32.c
ge_double_scalarmult.c
ge_frombytes.c
ge_scalarmult_base.c
ge_precomp_0.c
ge_p2_0.c
ge_p2_dbl.c
ge_p3_0.c
ge_p3_dbl.c
ge_p3_to_p2.c
ge_p3_to_cached.c
ge_p3_tobytes.c
ge_madd.c
ge_add.c
ge_msub.c
ge_sub.c
ge_p1p1_to_p3.c
ge_p1p1_to_p2.c
ge_tobytes.c
fe_0.c
fe_1.c
fe_cmov.c
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519\fe_cmov.c(42): warning C4146: unary minus operator applied to unsigned type, result
still unsigned [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
fe_copy.c
fe_neg.c
fe_add.c
fe_sub.c
fe_mul.c
fe_sq.c
fe_sq2.c
fe_invert.c
fe_tobytes.c
fe_isnegative.c
fe_isnonzero.c
fe_frombytes.c
fe_pow22523.c
sc_reduce.c
sc_muladd.c
ed25519.cc
win_delay_load_hook.cc
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(19): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(22): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(53): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(56): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(57): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(65): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(66): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(68): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(76): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(101): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(102): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(105): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(106): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
c:\users\natob\documents\github\getepona\epona-js\node_modules\ed25519\src\ed25519.cc(107): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
c:\users\natob\.node-gyp\11.14.0\include\node\v8.h(10257): note: see declaration of 'v8::Value::ToObject'
LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL-Win64\lib\libeay32.lib' [C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519\build\ed25519.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\natob\AppData\Local\Yarn\Data\global\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:193:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\ProgramData\\scoop\\apps\\nodejs\\current\\node.exe" "C:\\Users\\natob\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\natob\Documents\GitHub\GetEpona\Epona-js\node_modules\ed25519
gyp ERR! node -v v11.14.0
gyp ERR! node-gyp -v v3.8.0
Hey bro!
You created something the community loves and needs. But leaving pull request unanswered and ignore issues is a horror!
Your repository is used by 1.4k other packages. Therefore please fix the issues! It is a pain in the ass for all developers out there getting errors just because someone thought it would be could to write some OSS and doesn't maintain it.
That's not how OSS should work!
cheers
when I install this package, I meet with the following errors.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\albert\NetCode\NodejsWorkspace\BCJS>npm install ed25519
> ed25519@0.0.4 install C:\albert\NetCode\NodejsWorkspace\BCJS\node_modules\ed25519
> node-gyp rebuild
C:\albert\NetCode\NodejsWorkspace\BCJS\node_modules\ed25519>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\nod
e-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for v140 (Platform Toolse
t = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Vis
ual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...". [C:\albert\NetCode\NodejsWorksp
ace\BCJS\node_modules\ed25519\build\ed25519.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebui
ld"
gyp ERR! cwd C:\albert\NetCode\NodejsWorkspace\BCJS\node_modules\ed25519
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN bcjs@0.1.3 No description
npm WARN bcjs@0.1.3 No repository field.
npm WARN bcjs@0.1.3 No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ed25519"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! ed25519@0.0.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ed25519@0.0.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ed25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ed25519
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ed25519
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\albert\NetCode\NodejsWorkspace\BCJS\npm-debug.log
could you please take a look at this issue
# npm install ed25519
npm http GET https://registry.npmjs.org/ed25519
npm http 304 https://registry.npmjs.org/ed25519
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
> [email protected] install /tmp/node_modules/ed25519
> node-gyp rebuild
Traceback (most recent call last):
File "/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
sys.exit(gyp.script_main())
File "/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 533, in script_main
return main(sys.argv[1:])
File "/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 526, in main
return gyp_main(args)
File "/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 502, in gyp_main
params, options.check, options.circular_check)
File "/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 129, in Load
params['parallel'], params['root_targets'])
File "/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2736, in Load
variables, includes, depth, check, True)
File "/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 386, in LoadTargetBuildFile
includes, True, check)
File "/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 238, in LoadOneBuildFile
None)
File "binding.gyp", line 1
{
^
SyntaxError: invalid syntax
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-504.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/node_modules/ed25519
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
I couldn't find the batch verification/signing feature of ed25519 in this implementation. Is it on the roadmap? I would help but I'm not very experienced in the field of cryptology at all.
support required for node 12.
Getting an error in node 12
../src/ed25519.cc:19:89: error: no matching member function for call to 'ToObject' ...(!Buffer::HasInstance(info[0])) || (Buffer::Length(info[0]->ToObject()) ... ~~~~~~~~~^~~~~~~~ /Users/<username>/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( ^
hi, in my project, I need use ed25519
library. If I run the program directly after npm install
, an error will be reported:
┏ Electron -------------------
dyld: lazy symbol binding failed: Symbol not found: _SHA512
Referenced from: /Users/arron/Documents/node_workspace/vue-project/node_modules/ed25519/build/Release/ed25519.node
Expected in: flat namespace
dyld: Symbol not found: _SHA512
Referenced from: /Users/arron/Documents/node_workspace/vue-project/node_modules/ed25519/build/
┗ ----------------------------
┏ Electron -------------------
Release/ed25519.node
Expected in: flat namespace
┗ ----------------------------
I noticed your repository is updated to work with node 0.12+, but the NPM package is outdated. Could you please update the package?
ed25519.cc
..\src\ed25519.cc(78): error C2057: expected constant expression [C:\Program Files (x86)\nodejs\node_modules\homebridge\node_modules\HAP-NodeJS\node_modules\ed25519\build\ed25519.vcxproj]
..\src\ed25519.cc(78): error C2466: cannot allocate an array of constant size 0 [C:\Program Files (x86)\nodejs\node_modules\homebridge\node_modules\HAP-NodeJS\node_modules\ed25519\build\ed25519.vcxproj]
..\src\ed25519.cc(78): error C2133: 'signatureMessageData' : unknown size [C:\Program Files (x86)\nodejs\node_modules\homebridge\node_modules\HAP-NodeJS\node_modules\ed25519\build\ed25519.vcxproj]
..\src\ed25519\sc_reduce.c(274): warning C4244: '=' : conversion from 'crypto_int64' to 'unsigned char', possible loss of data [C:\Program Files (x86)\nodejs\node_modules\homebridge\node_modules\HAP-NodeJS\node_modules\ed25519\build\ed25519.vcxproj]
Line77 unsigned long long sigLen = 64 + messageLen;
Line78 unsigned char signatureMessageData[sigLen];
Line79 crypto_sign(signatureMessageData, &sigLen, messageData, messageLen, privateKey);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.