zincir

Simple distributed blockchain experiment distributed cryptocurrency blockchain zincir
0.2 released

Zincir Crystal

Zincir (Simple distributed blockchain experiment) implementation in Crystal

Install shards

$ shards install

Start the first node

$ crystal run main.cr
Solved: 000008d0b97a697d303f46c7835ffdad23c78574df158169906aaf873e4906e7 1
Server started at http://localhost:4253
Solved: 00000d6d022947c5aba6308e802052a305eabdc7efb97f7ca275c6ef0e48fd70 2
Solved: 00000c289256068a869fc1a45d9381e609215928179123214c01a031423ff36e 3
Solved: 000000834d2d178965a668660dc5cec6e3a16498d928b899c3f3cbb17ebbca82 4
Node connected: http://localhost:4869
Received: 00000d3e95f7e557ffeefaa849c2c72e516a3971db409e37ebc9880e26eaef51 5
...

Start additional nodes

$ crystal run main.cr -- ANOTHER_NODE_IP
Connecting to node: http://localhost:4253
Downloaded 000008d0b97a697d303f46c7835ffdad23c78574df158169906aaf873e4906e7 1
Downloaded 00000d6d022947c5aba6308e802052a305eabdc7efb97f7ca275c6ef0e48fd70 2
Downloaded 00000c289256068a869fc1a45d9381e609215928179123214c01a031423ff36e 3
Downloaded 000000834d2d178965a668660dc5cec6e3a16498d928b899c3f3cbb17ebbca82 4
Finished downloading the chain
Solved: 00000d3e95f7e557ffeefaa849c2c72e516a3971db409e37ebc9880e26eaef51 5
...

Implementation TODO

  • Extract http handlers to a file
zincir:
  github: oguzbilgic/zincir-crystal
  version: ~> 0.2
Crystal 0.27.0

Authors

Dependencies 1

  • kemal ~> 0.25.1
    {'github' => 'kemalcr/kemal', 'version' => '~> 0.25.1'}

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently