Commit Graph

439 Commits

Author SHA1 Message Date
Oskar Thoren 812e6e3ec4
Rewrite node to be async and do both send and receive 2019-08-07 13:10:07 +08:00
Oskar Thoren 2cb4338e26
WIP node async 2019-08-06 13:44:53 +08:00
Oskar Thoren fd33915e96
Better dir structure 2019-08-06 13:15:27 +08:00
Oskar Thoren a863e63641
Remote log: Basic CAS mocking behavior 2019-08-06 12:47:00 +08:00
Oskar Thoren de378ae938
Remote log: Use ns as starting point for cas 2019-08-06 12:30:18 +08:00
Oskar Thoren 52305876d8
Remote log: Basic end to end ns post/get
Split node recv/sending due to sync
Send to all clients
2019-08-05 13:12:36 +08:00
Oskar Thoren df63bbb77e
Remote log: ns post/get state and basic types 2019-08-05 12:44:24 +08:00
Oskar Thoren 9341a74858
Remote log: Node and ns mocking start
Ad hoc post/get message handling
2019-08-05 12:19:26 +08:00
Dean Eigenmann 5b581aeeff
Create README.md 2019-08-03 14:16:13 +02:00
Dean Eigenmann 6aad2a035f
Create LICENSE 2019-08-03 14:11:41 +02:00
Oskar Thoren f89f3aa718
Remote log: README, sketch roles and interfaces 2019-08-03 15:58:08 +08:00
Oskar Thoren 798ccafd58
Remote log: make socket server non-blocking, allow multiple clients 2019-08-03 15:20:39 +08:00
Oskar Thoren 2a1516743c
Remote log: basic socket server and client 2019-08-03 15:08:33 +08:00
Oskar Thorén 6ef25d1802
Fix typo 2019-04-19 11:13:34 +08:00
Oskar Thoren ad6a45d94a
github happy 2019-04-18 14:50:13 +08:00
Oskar Thoren 6271e4eef1
Add proposal merkleslash 2019-04-18 13:38:28 +08:00
Oskar Thoren 884565918d
Some comments 2019-04-18 13:23:48 +08:00
Oskar Thoren 9bed6d2beb
Print merkle paths 2019-04-18 11:54:28 +08:00
Oskar Thoren 8dada4b41e
Remove old main code 2019-04-18 11:28:10 +08:00
Oskar Thoren 3c2933f081
Move to tests
Some util functions
2019-04-18 11:26:56 +08:00
Oskar Thoren 84e18c6afd
Add note on partial verification data needed 2019-04-16 17:36:52 +08:00
Oskar Thoren 93071fb68d
Basic pull good and byzantine case 2019-04-16 15:38:08 +08:00
Oskar Thoren 2001faa6d2
Basic pull stub 2019-04-16 14:27:51 +08:00
Oskar Thoren 2f574e0dca
Trusted node hardcoded logic 2019-04-16 14:27:42 +08:00
Oskar Thoren ead298d312
Print merkleroot as hex 2019-04-16 14:27:40 +08:00
Oskar Thoren 78a88b2d7e
Merkletree hello world 2019-04-16 14:27:38 +08:00
Oskar Thoren 49cbb2ee41
Merkleslash init 2019-04-16 14:27:35 +08:00
Oskar Thorén 91ed40f98a
Update README.md 2019-04-11 14:12:54 +08:00
Oskar Thoren 5df96d8dfd Tweak README 2019-04-11 14:12:02 +08:00
Oskar Thoren 439fd6f414 Add pun 2019-04-11 13:45:46 +08:00
Oskar Thoren 48c5e28646 Tweak and add screenshot 2019-04-11 13:41:48 +08:00
Oskar Thoren 27764f1076 Staples: Update README with intro, rational, enhancements, how it works etc and give project name Staples 2019-04-11 13:35:57 +08:00
Oskar Thoren 11e2d5d303 Extra uploads to get hash, but it kind of works 2019-04-11 00:06:36 +08:00
Oskar Thoren 9f557ca48b Use SeenSet of parent0 to not download deps again and again 2019-04-10 23:44:32 +08:00
Oskar Thoren 98392ebac7 Fetching previous message dependencies recursively, works surprisingly well
- Also pretty up info prints
- Still re-downloads deps
2019-04-10 23:26:47 +08:00
Oskar Thoren a6f99e568d Receiver respects parent0 and downloads 1 dep
- Need to recursively check
- And keep track of seen
2019-04-10 22:51:05 +08:00
Oskar Thoren ebd4e5f8a3 Upload hash of last message and set lastParent in next message 2019-04-10 22:41:10 +08:00
Oskar Thoren 829bea0985 Can upload and download raw messages
- Also sreialize is a byte array, not str
2019-04-10 22:28:15 +08:00
Oskar Thoren f2d9258d87 Seralize and deserialize end to end with text and parent0 2019-04-10 21:05:59 +08:00
Oskar Thoren 523ba3e4b6 Serialize fn shorter 2019-04-10 20:49:30 +08:00
Oskar Thoren 9ab68cb9cf Basic JSON serialize deserialize test
First real (new) defined data structure

Show me your data structures and I'll infer your cruft?
2019-04-10 20:48:41 +08:00
Oskar Thoren 82fe337726 failed attempts, current hypothesis: kademlia connectivity off
saving for later
2019-04-10 20:12:58 +08:00
Oskar Thoren b7b83133dc All enodes subscribe and topic same as feed
Lets see if that makes a difference
2019-04-10 18:01:32 +08:00
Oskar Thoren dbae5a0cc2 Kind of get feeds working with some cheating
Update instruction with some error
Better passive REPL
Use cheater third node
2019-04-10 17:51:54 +08:00
Oskar Thoren a7dd82e2e4 Add Charlie third node 2019-04-10 17:44:15 +08:00
Oskar Thoren ada6ceff9d Add feed check script 2019-04-10 17:43:58 +08:00
Oskar Thoren 0c78c24480 When adding more peers things break, hm 2019-04-10 16:43:21 +08:00
Oskar Thoren adc99373e2 Request feed on startup working, but stale reads 2019-04-10 16:07:21 +08:00
Oskar Thoren e5ed24932a Post to feed when posting message 2019-04-10 15:16:25 +08:00
Oskar Thoren e3b825356a Basic post to feed and able to retrieve it from other node 2019-04-10 15:08:40 +08:00