HackChain
- 2 Devlogs
- 1 Total hours
A blockchain and cryptocurrency for Hack CLub!
A blockchain and cryptocurrency for Hack CLub!
Building the transactions and wallet flow
I have created the wallets and transasction flow signs a message built from the transaction’s own contents using the sender’s private key. Basically newtransaction part of the code. Verify checks that signature against the sender’s public key. Change any field amount, recipient after signing, and Verify returns false, because the signature no longer matches the (now different) message.
Researched on how blockchains worked. Decided to use Go, to code my blockchain since it has an inbuilt SHA256 library. Made a simple code for hash function and block struct. Initial bugs due to function errors. Simple fix was making them consistent. Made 3 initial blocks