Commit Graph

42 Commits

Author SHA1 Message Date
Mark Spanbroek 08b936e51e Introduce EdgeSet for keeping track of the edges in a DAG 2021-07-22 09:58:13 +02:00
Mark Spanbroek e1411ba790 Add questionable/results to basic imports 2021-07-15 13:48:16 +02:00
Mark Spanbroek c941d687fe Add second validator to alice and bob example identities 2021-07-15 13:47:49 +02:00
Mark Spanbroek 76006f4b73 Pass TxStore instances by reference 2021-07-14 17:10:26 +02:00
Mark Spanbroek 6c4fc39acf Return all missing and invalid transactions 2021-07-14 10:21:26 +02:00
Mark Spanbroek d6f22399a5 Add genesis hash to past 2021-07-12 15:22:57 +02:00
Mark Spanbroek 31ca927b80 Evaluate validity while accumulating history 2021-07-08 15:11:53 +02:00
Mark Spanbroek 524689ac59 Convert History.transactions to a set 2021-07-08 14:11:30 +02:00
Mark Spanbroek 32be2fd97d Rename module: past -> history 2021-07-08 13:20:55 +02:00
Mark Spanbroek 87cc66a9ba Introduce History type 2021-07-08 13:20:07 +02:00
Mark Spanbroek 338f94b6c7 Check validity of set of acknowledgements 2021-07-08 12:42:54 +02:00
Mark Spanbroek db1d8d3ae8 Find all transactions that precede a set of acknowledgments 2021-07-08 12:00:13 +02:00
Mark Spanbroek cdaf1b22fa Find all transactions that precede an acknowledgement 2021-07-08 11:43:33 +02:00
Mark Spanbroek 9d79abb6e6 Replace getTx and getAck with indexing [] 2021-07-08 11:24:07 +02:00
Mark Spanbroek 67e515120c Separate Hash into TxHash and AckHash 2021-07-08 11:21:30 +02:00
Mark Spanbroek 07fbd31a65 Find all transactions that precede a transaction 2021-07-05 16:30:43 +02:00
Mark Spanbroek ac4a911ae7 Store.getTx() and getAck() return optionals
Removing the need for hasTx and hasAck
2021-07-05 16:19:36 +02:00
Mark Spanbroek 2789abeb0f Validate acknowledgements 2021-07-05 14:55:43 +02:00
Mark Spanbroek f7435a5d3b Store Acks in TxStore 2021-07-05 11:54:45 +02:00
Mark Spanbroek 84645a1208 Wallet signs acks 2021-07-05 11:19:21 +02:00
Mark Spanbroek 34254152b3 Add public key of validator to Ack, allow signature to be checked 2021-07-05 11:07:47 +02:00
Mark Spanbroek 835e28ddbc Add signature to acknowledgements 2021-06-30 17:49:10 +02:00
Mark Spanbroek 9208af338f Introduce acknowledgements 2021-06-30 17:18:19 +02:00
Mark Spanbroek 2b51646c8f Include validator in transaction hash 2021-06-30 14:19:29 +02:00
Mark Spanbroek b0b40d3829 Change Transaction.example to ensure uniqueness 2021-06-30 14:19:29 +02:00
Mark Spanbroek c054636381 Add validator to transactions 2021-06-30 13:49:55 +02:00
Mark Spanbroek a7ef3b6b34 Speed up tests 2021-06-30 11:26:27 +02:00
Mark Spanbroek e17c7cfedc Transaction validation 2021-06-30 11:23:04 +02:00
Mark Spanbroek 44c4bb56a2 Add transaction store 2021-06-30 11:22:28 +02:00
Mark Spanbroek f35395bf3b Introduce example keys and genesis for Alice en Bob 2021-06-29 17:10:30 +02:00
Mark Spanbroek 7fac1c9c94 Simplify imports 2021-06-29 15:24:11 +02:00
Mark Spanbroek 5194a88f2f Add Wallet 2021-06-29 15:18:41 +02:00
Mark Spanbroek b0babf9962 Add convenience method for signing transaction 2021-06-29 15:17:53 +02:00
Mark Spanbroek 1a0a96705b Check transaction signature 2021-06-29 15:10:03 +02:00
Mark Spanbroek f65ad13904 Check validity of outputs when initializing Transaction 2021-06-29 11:00:40 +02:00
Mark Spanbroek cc353875c8 Add signatures to transaction 2021-06-28 17:08:05 +02:00
Mark Spanbroek 14d7abd451 Aggregation of public keys and signatures 2021-06-28 16:57:50 +02:00
Mark Spanbroek 5661469aee Transactions 2021-06-28 15:10:40 +02:00
Mark Spanbroek 2fbf826655 Add examples to simplify tests requiring keys 2021-06-28 14:03:48 +02:00
Mark Spanbroek 1257b42a65 Conversion of public key to bytes 2021-06-28 12:55:12 +02:00
Mark Spanbroek b28954e75c Add BLS signatures 2021-06-28 10:10:15 +02:00
Mark Spanbroek 6c5113e08a Introduce BLS based keys 2021-06-24 14:43:17 +02:00