decrypto-org / trustisrisk.js Goto Github PK
View Code? Open in Web Editor NEWA Javascript implementation of TrustIsRisk
A Javascript implementation of TrustIsRisk
We are currently stuck with 1.0.0-beta.12
and anything newer than that breaks us. Current version at the time of writing is beta 14.
All important comments in PR #7 have been addressed, however some small readability fixes are TODO.
Unable to assign somebody etc. as well
docker
and npm
with pacman
npm install
. The following warnings appeared:npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] No repository field.
npm WARN The package babel-polyfill is included as both a dev and production dependency.
npm run-script typecheck
. Output:
> [email protected] typecheck /home/user/Documents/TrustIsRisk.js
> flow check; test $? -eq 0 -o $? -eq 2
Found 0 errors
./run.sh
. Output:./run.sh: line 3: babel: command not found
I tried installing it, but Babel is not in pacman
.
Inside the node_modules there is a ton of babel directories.
Currently pubKeyToEntity()
assumes that everything happens on the main
network, which is not always the case.
Every use of setTimeout()
in our tests should be replaced by using the onTX and onBlock callbacks. However this seems to make the test (even more) flaky. Not sure why.
Copied here all error-like messages. The rest is mostly npm info/http messages (with a different color)
Docker version 17.03.0-ce, build 60ccb2265b
If you want the longer version, I can put it here as well, but I think you can find the problem with only this info.
$ sudo ./run.sh
src/index.js -> build/index.js
src/service.js -> build/service.js
Error response from daemon: No such container: bitcoin
Error response from daemon: No such container: bitcoin
Sending build context to Docker daemon 10.24 kB
Step 1/17 : FROM node:4
...
Get:14 http://deb.debian.org/debian/ jessie/main libzmq3-dev amd64 4.0.5+dfsg-2+deb8u1 [564 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 4211 kB in 8s (526 kB/s)
Selecting previously unselected package libsodium13:amd64.
...
Setting up libzmq3-dev:amd64 (4.0.5+dfsg-2+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
---> 80a6c81d7b7a
Removing intermediate container b68bebda7cb0
Step 3/17 : RUN npm install -g bitcore
---> Running in 56b9e9b08b4b
npm info it worked if it ends with ok
npm info using [email protected]
...
npm info preinstall [email protected]
> [email protected] preinstall /usr/local/lib/node_modules/bitcore/node_modules/bitcore-node
> ./scripts/download
Downloading bitcoin: https://github.com/bitpay/bitcoin/releases/download/v0.12.1-bitcore-4/bitcoin-0.12.1-linux64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 605 0 605 0 0 37 0 --:--:-- 0:00:16 --:--:-- 162
0 0 0 0 0 0 0 0 --:--:-- 0:00:35 --:--:-- 0curl: (6) Could not resolve host: github-cloud.s3.amazonaws.com
npm info install [email protected] into /usr/local/lib/node_modules/bitcore/node_modules/bitcore-lib
...
npm ERR! Linux 4.10.2-1-ARCH
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "bitcore"
npm ERR! node v4.8.0
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: `./scripts/download`
npm ERR! Exit status 6
npm ERR!
npm ERR! Failed at the [email protected] preinstall script './scripts/download'.
npm ERR! This is most likely a problem with the bitcore-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./scripts/download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bitcore-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls bitcore-node
npm ERR! There is likely additional logging output above.
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
The command '/bin/sh -c npm install -g bitcore' returned a non-zero code: 1
Unable to find image 'bitcoin:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/bitcoin/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fbitcoin%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
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.