Skip to content

nguyenkha/kcoin-blockchain

Repository files navigation

KCoin blockchain reference implementation

This project is a VERY SIMPLE implementation of Bitcoin blockchain protocol (ignore P2P and multiple miners) for demonstration of CTT522 Final project using Node.js, Restify, Knex with PostgreSQL database. Vietnamese guide is available on wiki.

Disclaimer

For scientific purposes only.

Hosting

API is hosting at https://api.kcoin.club

Installation

  1. Install docker

  2. Create database and API server

$ docker-compose build
$ docker-compose up
  1. Run database migrations
$ docker-compose run --rm api yarn knex migrate:latest
  1. Open URL http://localhost:5000/init to init blockchain by creating genesis block. Remember to store the private key, public key and address of miner to create transactions.

References

License

This project is licensed under the MIT License - see the LICENSE file for details

About

KCoin blockchain reference implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published