VaporCoin
VaporCoin copied to clipboard
A peer-to-peer blockchain ledger, built with Swift, using Vapor
Right now the keypair is manually generated with `openssl ecparam -genkey -name secp256k1 -noout -out private.pem` `openssl ec -in private.pem -pubout -out public.pem` And the path to these is provided...
We should never directly interact with the `state.blockChain` array. Instead, we need to build a set of functions to interact with the blockchain. These functions keep N most recent blocks...
needs some proper unit tests. with the added queues x3 - we can reliably interject / cancel when other signals (block found remote / propagation) occur from block chain. so...
Swift can't deal with 256 bit UInts natively, so figure out how to implement this. Without fractional difficulty, difficulty can only double or halve, which is inconvenient given difficulty will...
If two threads find a block at the exact time (At a low difficulty), the client crashes. Should be a fairly simple fix.