-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
71 lines (71 loc) · 3.57 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"name": "@digitalarsenal.io/keymaster",
"version": "1.1.1j.0.4",
"description": "Crypto Certificate Library",
"main": "dist/index.mjs",
"type": "module",
"scripts": {
"test": "mocha -s 300 --require test/utilities/hooks.js",
"test:dev": "env DEV=true mocha -s 300 -w --parallel --require test/utilities/hooks.js ./test ./src",
"test:devx509": "env DEV=true nodemon ./test/utilities/peculiarventures.x509.cagen.js",
"test:dev:server": "env DEV=true nodemon -w ./tmp -e crt,pem ./test/utilities/https.server.test.js",
"test:opensslcert": "cd ./test/openssl_certs && ./certs.sh",
"test:openssl:server": "env DEV=true nodemon -w ./tmp/gencerts -e crt,pem ./test/utilities/https.openssl.server.test.js",
"dist:dir": "mkdir -p dist",
"dev": "env DEV=true ./node_modules/.bin/nodemon --exec 'npm run build && npm run test' -w ./src/c/main.c -w ./src/c/certgen.c -w ./src/c/utilities.c -w ./src/js/index.mjs",
"dev:c": "./node_modules/.bin/nodemon --exec \"npm run dist:dir && npm run build:c\" -w ./test/test.c",
"build": "npm run build:js && npm run generate:docs && npm run test",
"build:openssl:wasm": "cd packages && ./build.sh",
"build:openssl:c": "cd packages/openssl && ./config && make clean && make && cp libcrypto.a ../../lib/",
"build:c": "clang -Llib/ test/test.c -ldl -pthread -lcrypto -D CRYPTO_TDEBUG=1 -Ipackages/openssl/include -Ipackages/openssl/include/openssl -o dist/km && npm run c:run",
"build:wasm": "emcc -O3 src/c/main.c src/c/certgen.c src/c/utilities.c -g -static -Wl,--initial-memory=655360,--export=processCSR,--export=createCertificate,--export=createCertificateSigningRequest,--export=cleanup,--export=createBuffer,--export=destroyBuffer,--export=convertKey -Llib/wasm -lcrypto --target=wasm32-unknown-wasi -D CRYPTO_TDEBUG=1 -s SINGLE_FILE -s EXPORT_ES6=1 --sysroot=/opt/wasi-sysroot -I/opt/wasi-sysroot/include -Ipackages/openssl/include -Ipackages/openssl/include/openssl -Isrc/c/include -I/usr/include/netinet -I/usr/include/x86_x64-linux-gnu/bits -o dist/keymaster.wasm.js",
"build:rollup": "rollup -c ./scripts/rollup.config.js",
"build:js": "npm run build:wasm && npm run generate:define && npm run build:rollup",
"generate:paramfile": "openssl ecparam -name secp256k1",
"generate:define": "node ./scripts/generateDefines.js",
"generate:docs": "cp ./src/js/index.mjs index.js && tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir ./dist && jsdoc2md -f ./index.js > ./dist/doc.md && rm index.js",
"c:run": "./dist/km ./test/data/ca.key ./test/data/ca.pem"
},
"repository": {
"type": "git",
"url": "git+https://github.com/DigitalArsenal/keymaster.git"
},
"keywords": [
"openssl",
"ca",
"certificates",
"x509",
"pki",
"bitcoin",
"secp256k1",
"x25519",
"ed25519"
],
"author": "digitalarsenal.io",
"license": "cc-by-4.0",
"bugs": {
"url": "https://github.com/DigitalArsenal/keymaster/issues"
},
"homepage": "https://github.com/DigitalArsenal/keymaster#readme",
"devDependencies": {
"@peculiar/webcrypto": "^1.1.7",
"@peculiar/x509": "^1.3.0",
"@rollup/plugin-wasm": "^5.1.2",
"base64url": "^3.0.1",
"bitcoinjs-lib": "5.2.0",
"bs58": "^4.0.1",
"eccrypto-js": "^5.4.0",
"express": "^4.17.1",
"globby": "^11.0.1",
"jsdoc-to-markdown": "^7.0.0",
"mocha": "^8.3.0",
"node-fetch": "^2.6.1",
"nodemon": "^2.0.4",
"ripemd160": "^2.0.2",
"rollup": "^2.39.0",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.1.5",
"underscore": ">=1.12.1",
"webcrypto-liner": "^1.2.4"
}
}