Commit Graph

25 Commits

Author SHA1 Message Date
Derrick Hammer e03eb41e96
fix: signRegistryEntry accidentally recursive 2023-09-11 13:15:18 -04:00
Derrick Hammer 3c789459ec
refactor: extract signRegistryEntry as a utility function and make the instance method a wrapper 2023-09-07 12:34:05 -04:00
Derrick Hammer 66612e9afc
refactor: make instance methods deserializeRegistryEntry, verifyRegistryEntry, serializeRegistryEntry wrappers of the functional ones 2023-09-04 08:48:01 -04:00
Derrick Hammer 9c471e6949
fix: fix outdated reads. port of s5 08c4bda5c1109673fba907ba119c9855fc3fcf68 0d2bf39845b37dd0b2ebe06be34c5d51e7060280 2023-09-04 07:19:19 -04:00
Derrick Hammer a34bd1b813
refactor: move hash types to frozen object group 2023-09-02 06:10:20 -04:00
Derrick Hammer 8373114d5c
fix: utf8ToBytes no longer needed 2023-09-01 23:31:49 -04:00
Derrick Hammer 384e941b09
fix: set sublevel valueEncoding to buffer 2023-09-01 23:10:18 -04:00
Derrick Hammer 419c7f85a8
fix: convert binary string to uint8array 2023-09-01 21:48:17 -04:00
Derrick Hammer fabda024ad
fix: fix iteration of peers 2023-09-01 20:46:37 -04:00
Derrick Hammer daf357cd63
fix: correct argument order on ed25519.verify 2023-09-01 20:41:32 -04:00
Derrick Hammer 1a3241688c
fix: add try/catch on db.get 2023-09-01 20:27:34 -04:00
Derrick Hammer d9af5bd015
fix: set node registry service in service constructor 2023-09-01 20:20:08 -04:00
Derrick Hammer 5d26f1ec61
refactor: export SignedRegistryEntry 2023-09-01 09:20:12 -04:00
Derrick Hammer 1b04799943
refactor: listen only needs to return the done handler 2023-09-01 08:24:55 -04:00
Derrick Hammer 8b1325f631
refactor: rewrite listen 2023-09-01 08:14:59 -04:00
Derrick Hammer a75c57b1e8
feat: port listen method 2023-09-01 08:02:05 -04:00
Derrick Hammer 9645105ec3
fix: await not needed 2023-09-01 07:55:43 -04:00
Derrick Hammer ade87a9934
refactor: signRegistryEntry does not need to be async 2023-09-01 07:51:40 -04:00
Derrick Hammer bda8007cdf
refactor: make timeout a utility function 2023-09-01 07:33:30 -04:00
Derrick Hammer f306ee2166
style: format 2023-09-01 07:30:56 -04:00
Derrick Hammer aed4865b73
refactor: major refactor to put p2p message routing into map based handlers with types 2023-08-31 06:09:23 -04:00
Derrick Hammer 08123762ce
refactor: export SignedRegistryEntry 2023-08-31 04:15:50 -04:00
Derrick Hammer a189fab1be
refactor: use a simple S5Node object to coordinate everything with helper getters 2023-08-31 03:29:28 -04:00
Derrick Hammer 05cbd60373
refactor: make deserializeRegistryEntry a method 2023-08-31 02:37:06 -04:00
Derrick Hammer 2f2ae2f4fc
feat: initial version 2023-08-30 14:38:53 -04:00