Commit Graph

11 Commits

Author SHA1 Message Date
Ivan Kuznetsov 85022254ec Implement serialization and deserialization of a block 2017-08-28 12:11:51 +07:00
Ivan Kuznetsov 35449eb8a6 Clean up and refactor proofofwork.go 2017-08-21 21:06:52 +07:00
Ivan Kuznetsov 0f23d64aa0 Implement Proof-of-Work 2017-08-21 17:50:41 +07:00
Ivan Kuznetsov cc4a2d8b43 Fix it! 2017-08-17 13:06:42 +07:00
Ivan Kuznetsov 9104fae035 Rename PrevBlock to PrevBlockHash for clarity 2017-08-17 13:04:56 +07:00
Ivan Kuznetsov 8a720666c7 Use empty PrevBlock in the genesis block 2017-08-16 14:12:44 +07:00
Ivan Kuznetsov 6a8b988a61 Fix empty byte array initialization 2017-08-16 13:10:41 +07:00
Ivan Kuznetsov cb8f5303dd Remove a debug print 2017-08-16 13:08:07 +07:00
Ivan Kuznetsov 18fe4a94c9 Refactor Block.SetHash 2017-08-16 13:07:30 +07:00
Ivan Kuznetsov 53c83d4ad2 Capitalize Block.hash 2017-08-16 12:33:15 +07:00
Ivan Kuznetsov b97fb423a7 Extract Block and Blockchain into separate files 2017-08-15 14:29:52 +07:00