LoginSignup
2
2

More than 5 years have passed since last update.

ブロックチェーンって何?Ryan X. Charles氏のfullnode (alpha)を実行してみた

Last updated at Posted at 2015-11-26

結論、ブロックチェーンは分からなかったし、ただ読み込んだlibraryのテストがmochaで走るだけだった。

しかしながら、例えばbitcoinの実装をするとしたら、カギの生成などについては、fullnode command promptが動くようになるので、ここで各ライブラリを叩いていく形で、模擬的に試験はできるっぽい。

しかしドキュメント不足でわからず…。

$ git clone git@github.com:ryanxcharles/fullnode.git
$ cd fullnode
$ npm install
$ gulp
$ chmod 777 bin/testapp.js
$ ./bin/testapp.js

ここまでやれば http://localhost:3000/ で gulp-mocha による各ライブラリのテストが分回る様子を見れる。が、これはたぶんfullnode.jsの実体ではない。本来はこれ↓

$ chmod 777 bin/fullnode.js
$ ./bin/fullnode.js
fullnode>

しかし、どんなコマンドがあるのかわからない…。

/build/ にも、コンパイルされたfullnode.js が出てくるが、index.htmlを開いても動かないので、謎。

ブロックチェーンがどういう実装となるのか疑問があったので、せっかくなので実行してみたが、よくわからなかった。どのレイヤーの話なのかさえもわからなかったので、今後を見守りたい。

補足

es6で書かれているので、gulpなどがsyntax errorになる。nodeが古いのが問題なので、$ sudo n latest して最新のnodeを入れると良い(require 4.0.0 over)

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2