Commit Graph

18 Commits

Author SHA1 Message Date
Ivan Kuznetsov 2734285450 Implement block height 2017-10-01 11:02:38 +07:00
Ivan Kuznetsov 8cafc0ef1e Use Merkle root hash in proof-of-work 2017-09-18 13:01:43 +07:00
Ivan Kuznetsov 942120679b Clean up block.go; rework transaction hashing 2017-09-10 12:02:46 +07:00
Ivan Kuznetsov fc0c819c43 Extract some structs into separate files 2017-09-10 10:54:58 +07:00
Ivan Kuznetsov 32dd771eef Rename Transaction.GetHash to SetID; add Transaction.ID field 2017-09-04 11:32:24 +07:00
Ivan Kuznetsov 206f87e265 Improve block transactions hashing 2017-09-03 09:56:14 +07:00
Ivan Kuznetsov 08a211be41 Integrate transactions into the blockchain 2017-09-03 09:45:49 +07:00
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