Lorenzo Delgado
2ca1d9d954
chore(wakunode2): move wakunode2 to apps directory
2022-10-18 12:35:26 -05:00
Lorenzo Delgado
c8ac16d6fb
refactor(node): split wakunode into waku_node and wakunode2
2022-10-18 09:05:53 -05:00
Lorenzo Delgado
2b7e364381
refactor(wakunode2): move config random private key generation to a procedure ( #1273 )
2022-10-18 07:06:54 -05:00
Aaryamann Challani
6da32c0c75
feat(rln-relay): periodically log metrics ( #1262 )
...
* feat(rln-relay): periodically log metrics
* chore(rln-relay): log rln metrics immediately
* fix(metrics): calculation etc
* chore(metrics): parseAndAccumulate into collector utils
* fix(metrics): use standard logging interval
2022-10-18 17:07:44 +05:30
Lorenzo Delgado
5959680b8e
chore: move apps and tools to their own directory
2022-10-12 14:41:25 -05:00
G
a03315b83c
refactor(rln): display byte arrays in hex as uints and fix Kilic's proofVerify proc ( #1259 )
...
* refactor(rln): convert 32 bytes arrays to hex as uints
* fix(rln): fix Kilic's proofVerify proc to take stub validRoots
* refactor(rln): use input's length when convert to/from hex
* chore(rln): print more commitments inHex in debug logs
2022-10-12 10:38:48 +02:00
Aaryamann Challani
042ea550df
chore(rln-relay): make account address optional ( #1258 )
...
* chore(rln-relay): make account address optional
* fix(rln-relay): onchain test
* chore(chat2): update docs, and handle error case in chat2
* fix(rln-relay): handle registration better
2022-10-12 07:48:11 +05:30
G
1d21dc48da
fix(rln): set maxEpochGap as maximum epoch gap ( #1257 )
2022-10-10 21:50:16 +02:00
G
37caab8a13
fix(rln): fix encoding to LE for idcommitments ( #1256 )
2022-10-10 19:35:43 +02:00
Aaryamann Challani
447a8b29aa
test(rln-relay): setup heartbeat ws subscription and log when connection drops ( #1253 )
...
* test(rln-relay): setup heartbeat ws subscription and log when connection drops
* fix(rln-relay): quantity
* fix(rln-relay): allow fromBlock to be passed to sub proc
* chore(rln-relay): cleaner logs
* fix(rln-relay): typo
2022-10-10 17:55:12 +05:30
Aaryamann Challani
87e57c6279
chore(rln-relay): additional logging ( #1243 )
...
* chore(rln-relay): additional logging
* fix: whitespace
2022-10-08 12:14:52 +05:30
G
1316196158
feat(RLN): Add verify against multiple roots ( #1250 )
...
* update zerokit submodule
* fix(rln): allow Buffer creation on empty arrays
* feat(rln): use verify_with_root
* fix(rln): update test to work with verify_with_root
2022-10-07 21:24:54 +02:00
Aaryamann Challani
7100de2d89
chore(rln-relay): disable merkle root validation ( #1246 )
...
* chore(rln-relay): disable merkle root validation
* brings back validation of the root but without invalidating the message
* adds the tracking issue
Co-authored-by: sanaz <staheri14@ku.edu.tr>
2022-10-06 13:17:01 -07:00
Lorenzo Delgado
790dc54548
fix(store): fix store validity timestamp variance constant ( #1244 )
2022-10-06 16:07:12 +01:00
Hanno Cornelius
eaa122da4b
chore: publish nwaku version to metric ( #1234 )
2022-10-06 13:06:54 +01:00
Lorenzo Delgado
d5c3810db5
fix(store): fix waku store resume tests
2022-10-05 17:58:24 +02:00
Lorenzo Delgado
313d0d29e3
chore(store): improve database migrations logging
2022-10-05 11:45:44 +02:00
G
90609f0cc3
chore(rln): Update zerokit submodule and RLN APIs ( #1209 )
...
* chore(rln): update zerokit submodule and APIs
* feat(rln): add new_circuit_from_data zerokit API
* chore(rln): update zerokit module
2022-10-05 00:06:33 +02:00
Sanaz Taheri Boshrooyeh
802efca54e
feat(rln-relay): adds rln identifier to the RateLimitProof ( #1219 )
...
* adds rln identifier to the RateLimitProof
* enables rln-relay compilation for wakunode2
* unifies the two RateLimitProof types
* a minor update
Co-authored-by: G <28568419+s1fr0@users.noreply.github.com>
2022-10-04 13:20:44 -07:00
Hanno Cornelius
53912a19fc
fix: store config without db-path leads SIGSEGV ( #1218 )
2022-10-04 14:34:05 +01:00
Aaryamann Challani
e39efc28cf
chore(rln-relay): namespaced flags ( #1204 )
...
* chore(rln-relay): namespaced flags
* chore(rln-relay): shorten flag size
* fix(rln-relay): consistent config naming
* chore(rln-relay): consistency with address configs
* fix(rln-relay): config
2022-10-03 13:25:56 -07:00
Lorenzo Delgado
e4f6172a16
fix(store): Move page info logic to waku store protocol
2022-10-03 17:36:17 +02:00
Lorenzo Delgado
7fa7e358d8
fix(store): update sqlite db table primary key and decouple queries module from pagination types
2022-10-03 15:23:39 +02:00
Richard Ramos
7e8a7ccc71
fix: add lastEpoch when using zerokit, and missing return ( #1210 )
2022-10-03 11:48:01 +02:00
Lorenzo Delgado
52a397ab82
refactor(store): simplify store queue query implementation
2022-10-03 08:40:01 +02:00
Aaryamann Challani
cd581c087f
feat(rln-relay): metrics ( #1185 )
...
* feat(rln-relay): metrics
* fix(rln-relay): invalid token
* fix(rln-relay): return outside time
* style(rln-relay): multiline proc def
* fix(rln-relay): oserror
* fix(rln-relay): Exception should not be raised
* Revert "fix(rln-relay): oserror"
This reverts commit edcf39c0088ca526ca50256d856eee20d87a3c37.
* Revert "fix(rln-relay): Exception should not be raised"
This reverts commit c8d09b055314a83bb4a94900a47e899773cb47df.
* fix(rln-relay): revert exception removal
* feat(rln-relay): granular tracking
* fix(rln-relay): observe only on histogram, convert mount to hist
* chore(rln-relay): add additional metrics
* fix(rln-relay): missing import
* fix(rln-relay): template should expand only when times is defined
* fix(rln-relay): follow prometheus naming style
* fix(rln-relay): explicitly assert that the root window size should be less than 10
* fix(rln-relay): outstanding issues with infinite labels, minor refactor
* fix(rln-relay): typo
* fix(rln-relay): screaming case to pascal case
* fix(rln-relay): typos
* fix(rln-relay): imports
* fix(rln-relay): remove dependence on times, make durations as gauges
* fix(rln-relay): import order
2022-09-30 18:13:42 +05:30
Lorenzo Delgado
37c0b199e4
chore(store): collocate pagination and message store types
2022-09-28 13:36:05 +02:00
Lorenzo Delgado
78e12b01e6
refactor(store): decouple message store queue from pagination index type ( #1187 )
2022-09-27 21:10:11 +02:00
Lorenzo Delgado
a0fd36393c
fix(store): rename store timestamp sqlite column
2022-09-27 11:47:25 +02:00
Aaryamann Challani
9a7eb19ebd
feat(rln-relay): multiple acceptable roots ( #1177 )
...
* feat(rln-relay): multiple acceptable roots
* fix(rln-relay): make sure onchain handler uses correct proc
* fix(rln-relay): typo
* style(rln-relay): convert const to pascalcase
* chore(rln-relay): address pr review
* fix(rln-relay): add require to test
* fix(rln-relay): add proc desc
* fix(rln-relay): ensure that group id commitments were added correctly
* fix(rln-relay): potential mem leak
* style(rln-relay): comments
* fix(rln-relay): magic number ambiguity
* chore(rln-relay): comment
Co-authored-by: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com>
Co-authored-by: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com>
2022-09-27 10:10:04 +05:30
Lorenzo Delgado
6d8d5493a2
fix(store): move insert criteria logic to waku store protocol module
2022-09-26 11:50:15 +02:00
Sanaz Taheri Boshrooyeh
90591d8683
chore(rln-relay): specifies the address type for the eth-client-address config parameter ( #1176 )
2022-09-23 21:57:28 -07:00
Hanno Cornelius
5c9358881b
fix: fail to start switch with ext ip ( #1181 )
2022-09-23 15:27:15 +01:00
Hanno Cornelius
505754b36f
fix: signing key for wakuv2 DNS lists has changed ( #1174 )
2022-09-22 14:51:17 +02:00
Lorenzo Delgado
eebdb88440
chore(store): move constants to retention policies modules
2022-09-22 11:17:38 +02:00
Lorenzo Delgado
4ece585a3a
refactor(wakunode): remove deprecated non-async methods
2022-09-21 18:27:40 +02:00
Lorenzo Delgado
4cfcfdb691
feat(store): execute retention policies periodically ( #1155 )
2022-09-21 11:32:59 +02:00
Hanno Cornelius
a0174f4760
fix: no need to start protocols twice ( #1162 )
...
* fix: no need to start protocols twice
* fix: relay should still be explicitly started
Co-authored-by: Lorenzo Delgado <lorenzo@status.im>
2022-09-20 21:02:20 +01:00
Aaryamann Challani
52a285c1d4
feat(rln-relay): validate the merkle root in the RateLimitProof ( #1158 )
...
* feat(rln-relay): validate the merkle root in the RateLimitProof
* style|chore: replace snake case usage, convert proofVerify to Result[bool,string]
* chore(rln-relay): remove unhandled usage of result returned
* fix(rln-relay): typos
* chore(rln-relay): validate root before proof verification
* fix(rln-relay): cmp
* fix(rln-relay): generic rln relay result
* style(rln-relay): readability
* fix(rln-relay): use patterns for testing, requires instead of checks
* fix(rln-relay): move root validation to message validation
* fix(rln-relay): typo
* fix(rln-relay): typo
* chore(rln-relay): address pr review
2022-09-20 18:38:05 +05:30
kaiserd
3e894b0072
feat: waku peer exchange (RFC34) ( #1152 )
2022-09-20 13:03:34 +02:00
Lorenzo Delgado
568ead13af
refactor(store): protocol code refactoring and api reorganization
2022-09-20 11:39:52 +02:00
Hanno Cornelius
f76d840baa
fix: nodes in AddressBook are not necessarily connected ( #1161 )
2022-09-20 10:00:40 +01:00
Lorenzo Delgado
9e4f595f65
refactor(store): invert retention policies dependency on message store interface
2022-09-16 12:55:22 +02:00
Lorenzo Delgado
f02c9305ae
refactor(store): extend message store interface with store manipulation methods
2022-09-15 21:12:13 +02:00
Lorenzo Delgado
178291d8c3
refactor(store): don't cache the message count in sqlite message store
2022-09-15 18:13:30 +02:00
Lorenzo Delgado
32e535acd5
feat(store): run sqlite database vacuum at node start
2022-09-14 21:40:17 +02:00
Lorenzo Delgado
ef6e7f3ba3
fix(store): follow good practices in store insert and query metrics ( #1150 )
2022-09-14 13:40:11 +01:00
Lorenzo Delgado
dd3b44ff97
refactor(wakunode): remove waku rln relay export from wakunode
2022-09-14 12:25:05 +02:00
Lorenzo Delgado
3724c46250
refactor(wakunode): remove waku message export from wakunode
2022-09-14 12:25:05 +02:00
Lorenzo Delgado
7ce48aae4d
refactor(wakunode): remove libp2p builders export from wakunode
2022-09-14 12:25:05 +02:00