Commit Graph

20 Commits

Author SHA1 Message Date
arnaucube
fd30384b23 add cmd, update config.go 2019-04-13 15:43:48 +02:00
arnaucube
ff73690719 initial simple peer, add config reader 2019-04-13 03:23:12 +02:00
arnaucube
0a48c937b2 add test multiple nodes adding blocks 2019-04-12 06:47:29 +02:00
arnaucube
85d0bcc5a3 GetBalance 2019-04-11 14:05:09 +02:00
arnaucube
a91060fa55 store tx in txDb, and store address balance in addressDb for each block added~ 2019-04-10 21:56:38 +02:00
arnaucube
c5893128ac CreateGenesisBlock make tx, continue node test 2019-04-10 16:43:04 +02:00
arnaucube
e227d95846 testing, and hash block and sign it when creating 2019-04-10 10:27:14 +02:00
arnaucube
985f03bb14 tmp use PubK instead of Addr, Add test add genesis block 2019-04-09 09:58:01 +02:00
arnaucube
670b215e0a add block.CalculateHash, fix SignBlock, started CreateGenesis, started VerifyBlock 2019-04-08 20:58:32 +02:00
arnaucube
16f99b279a updated data structures, moved NewBlock under Node functions 2019-04-07 23:19:06 +02:00
arnaucube
701731ea67 tx inputs and outputs structure, add CheckTx 2019-04-07 18:52:20 +02:00
arnaucube
01963a8f41 node block PoW, sign and verify 2019-04-07 15:57:01 +02:00
arnaucube
e122822151 add node create blocks from pending txs 2019-04-07 13:56:27 +02:00
arnaucube
67e7f532e4 add initial node 2019-04-07 11:30:46 +02:00
arnaucube
cb7a4f857d blockchain data structure and initial functions 2019-04-07 00:41:41 +02:00
arnaucube
b28cda2439 block structure & calculate PoW nonce 2019-04-06 23:04:05 +02:00
arnaucube
21f0d57fe4 add core/keys: NewKey, key parsing, sign and verify 2019-04-06 21:22:31 +02:00
arnaucube
61918f7f99 add leveldb as db 2019-04-06 20:34:55 +02:00
arnaucube
461aafcfc9 first commit 2019-04-06 19:59:14 +02:00
arnau
04095d76f1 Initial commit 2019-04-06 19:57:06 +02:00