Closed Rasika9596 closed 2 years ago
Hello,
Can anyone please help me here?
The version on npm is quite out of date and we are attempting to rectify that. The version direct from this repository is what you should use.
I propose you 2 options. (Reference: https://github.com/Chia-Mine/bls-signatures/tree/npm)
Check node/cmake/emscripten exists in your environment or install them if they are missing.
See https://emscripten.org/docs/getting_started/downloads.html for emscripten installation.
For my current environment, I use
Git clone from the trusted source code
cd <directory you like>
git clone https://github.com/Chia-Network/bls-signatures
cd bls-signatures
git checkout f9db7faa370c4743e48be8a9823232e4d906c4d0 # You will be warned by git as it is `detached-state` but don't worry.
Build js-binding
mkdir js_build && cd js_build
cmake ../ -DCMAKE_TOOLCHAIN_FILE=/PATH-TO-EMSDK-ROOT/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
cmake --build . --
Check out the products
ls -l js-bindings/
#
4. You can install the npm by path such as:
`npm install /path/to/the/js-bindings` in your project folder.
## 2. Install my npm which is compatible to bls-signatures at commit f9db7faa370c4743e48be8a9823232e4d906c4d0
Just execute command like this:
```shell
npm install @chiamine/bls-signatures # or yarn add @chiamine/bls-signatures
Thank you so much! I'll give it a try and get back.
'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.'
'This issue was automatically closed because it has been flagged as stale and subsequently passed 7 days with no further activity.'
Hello,
I've installed bls-signatures using 'npm i bls-signatures --save' and using the below code,
But I'm getting this error,
package.json,
Could anyone please help here?