Bindings of harmony-one/vdf to node.js
- You will need to build the
lib.go
filecd go && go build -o ../include/libvdf.so -buildmode=c-shared lib.go && cd ../
- Build the bindings with node-gyp
node-gyp configure && node-gyp build
3, If you get an error saying/usr/bin/ld: cannot find -l:libvdf.so: No such file or directory
or similar You need to export the Export the Library Pathexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/include