Skip to content

Commit 05bbd72

Browse files
committed
cleanup; relocation of server.js to test/node-server.js
1 parent 062f24a commit 05bbd72

10 files changed

+10
-6
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PLEASE NOTE - THIS PROJECT IS NOT PRODUCTION READY
22

3-
spcp256k1-wasm
3+
secp256k1-wasm
44
==============
55

66
EMCC+LLVM WebAssembly bindings for [libsecp256k1 ](https://github.com/bitcoin-core/secp256k1)
@@ -25,9 +25,7 @@ Building Binaryen:
2525
NNN = number of CPU cores/threads
2626

2727

28-
Building Emscripten and LLVM:
29-
30-
The following process builds LLVM inside the `./emscripten/build` folder
28+
The following process builds LLVM inside the `./emscripten/build` folder:
3129

3230
$ cd emscripten
3331
$ mkdir build
@@ -61,7 +59,13 @@ You can run `./build` or `build.bat` to build the WASM binaries or execute the f
6159

6260
To test the build, you will require an installed version of NodeJs. From within the `secp256k1-wasm` folder please run the following:
6361

62+
using python SimpleHTTPServer:
63+
64+
$ python -m SimpleHTTPServer 8000
65+
66+
using nodejs:
67+
6468
$ npm install
65-
$ node server
69+
$ node test/node-server
6670

6771
You should now be able to access the emscripten environment with secp256k1 loaded at http://localhost:3000
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

secp.c deprecated/secp.c

File renamed without changes.

server.js test/node-server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const express = require('express');
22
const path = require('path');
33
const app = express()
44
const port = 3000;
5-
const HTTP = path.join(__dirname, "http");
5+
const HTTP = path.join(__dirname,"..","http");
66

77
app.get('/', (req, res) => {
88
res.sendFile(path.join(HTTP, "index.html"));

0 commit comments

Comments
 (0)