Commit Graph

124 Commits

Author SHA1 Message Date
Starbeamrainbowlabs 61bf2a27db
Implement stubs to remind us what to do next
We need a way to message our peers easily and flexibly.
2021-10-19 02:43:55 +01:00
Starbeamrainbowlabs cf7451dcf2
Wire up peer handing in PeerServer
Going to be a heck fo a stack trace if it crashes though.....

Agent → .... → PeerServer → Peer → Connection → FramedTransport → { 
rekey, StreamHelpers }
2021-10-19 02:36:22 +01:00
Starbeamrainbowlabs 32dec3049f
Peer: we can use async/await for the initial handshake
events.once(emitter, eventname) makes it so much more concise!
2021-10-09 18:13:34 +01:00
Starbeamrainbowlabs 6f181971e3
Implement simple peer system, but it's untested.
Next step is to exchange peers.
2021-10-09 18:00:54 +01:00
Starbeamrainbowlabs 0b82e34273
Connection: Comment events
...JSDoc's syntax is *bad* and outdated for events :-/
2021-10-09 16:31:58 +01:00
Starbeamrainbowlabs 7d3161433a
Improve unexpected socket disconnect handling 2021-10-03 12:24:32 +01:00
Starbeamrainbowlabs b48f50e819
Tidy up logging 2021-10-03 12:14:57 +01:00
Starbeamrainbowlabs 49ca7f0a57
Fix bugs. It works!!!
Now we need to tidy up the logging output.....
2021-10-03 02:33:54 +01:00
Starbeamrainbowlabs 0eed69917d
Lotsa debugging, but lotsa debugging to go...... 2021-10-03 00:34:55 +01:00
Starbeamrainbowlabs 6e63bb0e66
rekey: upgrade round 2 onwards 2021-10-02 17:38:24 +01:00
Starbeamrainbowlabs 93ff823827
Work on rekeying some more 2021-10-02 17:34:15 +01:00
Starbeamrainbowlabs bbc5d54158
connection: fix some edge cases 2021-10-02 17:00:24 +01:00
Starbeamrainbowlabs c43aeb6c3b
Implement FramedTransport to increase efficiency of transmitted encrypted messages 2021-10-02 15:56:34 +01:00
Starbeamrainbowlabs b3da7fea17
add todo 2021-10-02 03:03:49 +01:00
Starbeamrainbowlabs ba377874b1
Looks like upgrading to TLS isn't going to work, so we're going to implement it ourselves.
....this is a bad idea.
2021-10-02 03:02:49 +01:00
Starbeamrainbowlabs c0441a1dcd
Bugfix secretbox: Fix buffer conversions 2021-10-02 02:11:26 +01:00
Starbeamrainbowlabs a2d2b58b38
hey, we have basic starttls! Though it's not wired up yet. 2021-10-02 01:16:34 +01:00
Starbeamrainbowlabs 29799e4631
Update subcommands 2021-10-01 02:48:22 +01:00
Starbeamrainbowlabs ab1e52417d
Setup scaffolding for Node.js based attempt 2021-10-01 02:44:50 +01:00
Starbeamrainbowlabs cf3d3355ca
Let's start afresh 2021-09-30 21:31:38 +01:00
Starbeamrainbowlabs 12339aad90
This isn't working..... I think I've bitten off more than I can chew again with Rust :-( 2021-09-30 01:00:19 +01:00
Starbeamrainbowlabs 2e062fd78f
Start setting up a handler, but it's not working right just yet.
We probably want to go back and look at the tokio examples again.
2021-09-29 02:44:33 +01:00
Starbeamrainbowlabs f55fd2f91b
Adapt settings system from woppleblox 2021-09-28 23:55:34 +01:00
Starbeamrainbowlabs f6563932c9
Setup basic CLI 2021-09-28 23:47:52 +01:00