Commit Graph

285 Commits

Author SHA1 Message Date
Derrick Hammer 12d8d1371a
fix: we dont need to send the network id 2024-01-07 21:41:17 -05:00
Derrick Hammer 102f147ec4
fix: encode the challenge, mot the original message 2024-01-07 21:38:26 -05:00
Derrick Hammer 3f469a3a15
fix: dont strip off anything 2024-01-07 11:24:47 -05:00
Derrick Hammer 1b8ba683c0
fix: need to handle no network id 2024-01-07 10:54:26 -05:00
Derrick Hammer a9fb6aedb9
fix: need to store a reference to the handler to itself so we can access it by the proper type in a parent method 2024-01-07 10:37:42 -05:00
Derrick Hammer a6389eb738
feat: add EncodeMsgpack, HandleMessage, and NewHandshakeDoneRequest toHandshakeDone 2024-01-07 09:13:03 -05:00
Derrick Hammer cc2885f2b4
feat: add DecodeMessage and HandleMessage to HandshakeOpen 2024-01-07 09:13:02 -05:00
Derrick Hammer 00c8a081f6
feat: add secure message signing and encoding 2024-01-07 09:13:02 -05:00
Derrick Hammer 3ce371986b
refactor: add NetworkId() to node 2024-01-07 09:13:02 -05:00
Derrick Hammer ebd95f59d4
fix: need to set known 2024-01-07 09:13:02 -05:00
Derrick Hammer a59b7d44d6
fix: bad type conversion, and add a panic 2024-01-07 09:13:02 -05:00
Derrick Hammer be082fda60
refactor: add interface check 2024-01-07 09:13:02 -05:00
Derrick Hammer a497592bad
refactor: add dummy DecodeMessage to panic, and add getter/setter for known 2024-01-07 09:13:01 -05:00
Derrick Hammer b53eb16767
refactor: add interface check 2024-01-07 09:12:54 -05:00
Derrick Hammer b8a38fde66
fix: dont return by ref 2024-01-07 06:51:40 -05:00
Derrick Hammer 8b2756caad
fix: need to pass by ref 2024-01-07 06:49:27 -05:00
Derrick Hammer 0028483817
refactor: use lowercase socket 2024-01-07 06:47:19 -05:00
Derrick Hammer 2e9b07c6bd
refactor: dont use pointers with interfaces 2024-01-07 06:47:01 -05:00
Derrick Hammer 52b7426a7a
refactor: change how we manage peers, create getter/setters on Peer/BasePeer, and refactor WebSocketPeer to use new ws package and add Connect/NewPeer 2024-01-07 06:33:32 -05:00
Derrick Hammer 8435ce33de
dep: switch to nhooyr websocket 2024-01-07 06:31:26 -05:00
Derrick Hammer 8f6ebbd3e2
fix: nil pointer reference 2024-01-07 05:31:24 -05:00
Derrick Hammer 581ff5120d
fix: scheme doesnt use colons 2024-01-07 05:28:05 -05:00
Derrick Hammer 52f08335a2
fix: set started 2024-01-07 05:25:45 -05:00
Derrick Hammer f7a86fd2a5
fix: don't try to init 2024-01-07 05:23:45 -05:00
Derrick Hammer 29f7563d75
fix: set inited 2024-01-07 05:23:11 -05:00
Derrick Hammer 3218167b83
fix: bad return on PublicKeyRaw 2024-01-07 05:22:00 -05:00
Derrick Hammer 6597a78e51
refactor: can't inherit from HandshakeOpen without a import cycle 2024-01-07 05:13:09 -05:00
Derrick Hammer 54f0a53f77
refactor: need to crease a base protocol package to solve import cycle 2024-01-07 05:12:43 -05:00
Derrick Hammer ef86db2bd0
refactor: need to export storage structs 2024-01-07 04:33:40 -05:00
Derrick Hammer 1950edf181
refactor: move StorageLocation to a new pkg to prevent import cycle 2024-01-07 04:30:03 -05:00
Derrick Hammer 57657bd6ed
fix: need to use interface, not impl 2024-01-07 04:27:54 -05:00
Derrick Hammer 602ece249a
chore: delete unneeded package 2024-01-07 04:17:36 -05:00
Derrick Hammer 4b406bcf57
fix: need to init and setup P2P service 2024-01-07 04:17:19 -05:00
Derrick Hammer 311b03737c
fix: need to fix construction od node and stick to using interfaces 2024-01-07 04:16:33 -05:00
Derrick Hammer 99167b4cec
fix: add missing services impl 2024-01-07 04:15:28 -05:00
Derrick Hammer ea872fedc4
refactor: move nodeVotes to a dedicated file 2024-01-07 04:03:36 -05:00
Derrick Hammer 51d76a2d95
refactor: use interfaces 2024-01-07 03:58:22 -05:00
Derrick Hammer 4678d406fc
refactor: use interfaces, rename struct to be an impl 2024-01-07 03:57:46 -05:00
Derrick Hammer b340cda442
refactor: add interface to map 2024-01-07 03:57:12 -05:00
Derrick Hammer ca1e2dcf72
refactor: use interfaces, rename struct to be an impl 2024-01-07 03:56:50 -05:00
Derrick Hammer 26a51a25d5
fix: dont use pointers with interfaces 2024-01-07 03:56:05 -05:00
Derrick Hammer 0a6738be5d
refactor: need access data via methods 2024-01-07 03:55:33 -05:00
Derrick Hammer cb23f21ecc
fix: need to export methods for now 2024-01-07 03:54:50 -05:00
Derrick Hammer b8cb37f99e
refactor: interfaces should not be pointers 2024-01-07 03:54:32 -05:00
Derrick Hammer bd8c14e53e
fix: use interface not implementation 2024-01-07 03:19:04 -05:00
Derrick Hammer 713bcf98c3
refactor: major refactor to split major components into interfaces due to import cycles 2024-01-07 03:13:35 -05:00
Derrick Hammer 19b0785c48
fix: wrong imports and references to Config 2024-01-06 13:26:03 -05:00
Derrick Hammer 0b6ef02572
refactor: move config to its own package 2024-01-06 13:23:54 -05:00
Derrick Hammer 2a21ca4d60
refactor: move node and storage to its own package 2024-01-06 13:21:09 -05:00
Derrick Hammer 348b20ba4a
fix: need to remove by ref 2024-01-06 13:15:45 -05:00