A peer-to-peer blockchain ledger, built with Swift, using Vapor
MIT License
VaporCoin is a simple blockchain transaction ledger implementation, built in Swift using Vapor.
Functional, simple and easy to understand implementation that favors learning over robust security and usability. This is not intended to be an 'altcoin'
Blocks:
Transactions:
Proof of Work (PoW) algorithm:
Block header:
brew install vapor/tap/vapor
In project root directory:
vapor update
vapor build
vapor run
If you are using Xcode, make sure to select `My Mac` as target, and select the `Run` scheme.
To mine a block, you can lower the diffBits amount in Droplet+Setup.swift line 17:
let miner = Miner(coinbase: "coinbaseAddressNotImplementedYet", diffBits: 20, threadCount: 4)
Get me some coffee:
ETH: 0x1e8e9c1a1b71ff88829b962cfa7190d074343b37
LTC: LZc2QcyZGuhHF18s96VAUPpByZq2S8yCsj
ZEC: t1UukAm25iRLTyTQfhX6WfRBzMjp8UCmy4a