https://github.com/adrianmcli/simple-js-blockchain
🔗 A simple JS blockchain using only Flow types and functions
https://github.com/adrianmcli/simple-js-blockchain
blockchain flow flowtype javascript
Last synced: 7 months ago
JSON representation
🔗 A simple JS blockchain using only Flow types and functions
- Host: GitHub
- URL: https://github.com/adrianmcli/simple-js-blockchain
- Owner: adrianmcli
- Created: 2017-10-28T01:50:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-28T08:59:43.000Z (over 8 years ago)
- Last Synced: 2025-01-03T14:49:33.798Z (over 1 year ago)
- Topics: blockchain, flow, flowtype, javascript
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple JS Blockchain
This is based on a [blog post](https://kndrck.co/building-a-minimal-blockchain-in-haskell.html) written by my good friend [Kendrick Tan](https://github.com/kendricktan).
The original post used Haskell (which I am a fan of), but I am nevertheless most comfortable with Javascript. A lot of blog posts about tiny blockchains in Javascript used ES2015 classes and I wanted to see if we could simply use Flow types instead.
# Running It
1. Clone the repo.
2. Run `yarn` (or `npm install`) to install dependencies.
3. Build the project (to strip the types) using `yarn build` or `npm run build`.
4. Require the library inside the generated `lib/lib.js`.