Lorenzo Delgado
a013cf68d5
chore: build rln dependecies only when building v2
2022-11-07 09:14:21 +01:00
Lorenzo Delgado
4b3acf305f
refactor(message_store): move message_store to node module
2022-11-04 19:48:22 +01:00
Lorenzo Delgado
eb6dbb3d1e
chore: remove unused imports
2022-11-04 10:52:08 +01:00
Lorenzo Delgado
2df75f8e6f
refactor(peer_manager): move peer_store under peer_manager module
2022-11-04 09:40:13 +01:00
Aaryamann Challani
77054f997e
chore(rln-relay): remove all raises and replace with Result types ( #1321 )
...
* chore(rln-relay): remove all raises and replace with Result types
* chore(rln-relay): s/var/let
* chore(rln-relay): s/isOk/isOk()
* fix(rln-relay): proc def comments about the result type
Co-authored-by: Lorenzo Delgado <lorenzo@status.im>
2022-11-04 08:30:42 +05:30
Lorenzo Delgado
d8590b81c5
feat(wakunode2): support configuration via environment variables
2022-11-03 17:58:48 +01:00
Lorenzo Delgado
d34c3bf41d
feat(testlib): mark commented test cases as skipped
2022-11-03 17:58:28 +01:00
Lorenzo Delgado
d3ae64ac29
chore: randomize waku tcp ports in tests
2022-11-03 14:47:56 +01:00
Lorenzo Delgado
cab1c560a8
refactor(sqlite): move migrations logic to sqlite common module
2022-11-02 16:36:33 +01:00
Lorenzo Delgado
9a7a972c14
feat(filter): split waku filter protocol into server and client
2022-11-02 11:59:58 +01:00
Lorenzo Delgado
bd5c2bf602
refactor(peer-exchange): move peer management to waku_node module
2022-11-02 09:45:21 +01:00
Aaryamann Challani
6ce6a385be
feat(rln-relay): track last seen event ( #1296 )
...
* feat(rln-relay): track last seen event
* fix(rln-relay): clean up subscribeToMemberRegistrations proc
* fix(rln-relay): tests
* fix(rln-relay): unnecessary try-except
* fix(rln-relay): proc descriptions, logging
Co-authored-by: G <28568419+s1fr0@users.noreply.github.com>
2022-11-01 08:15:34 +05:30
Aaryamann Challani
462ae9c64a
fix(rln-relay): RangeDefect test ( #1318 )
...
* fix(rln-relay): RangeDefect test
* fix(rln-relay): any overflow
* fix(rln-relay): dont use int64 when its absolute value is being used anyway
* chore(rln): rename proc to be more meaningful about operation
* fix(rln): remove unused imports
2022-11-01 05:55:39 +05:30
Lorenzo Delgado
f28037b8ae
chore(common): move sqlite module to common module
2022-10-28 20:13:41 +02:00
Lorenzo Delgado
f1c2aa632d
refactor(node): use store client in waku_node
2022-10-28 20:11:28 +02:00
Lorenzo Delgado
8284331bbe
chore: remove legacy unused test suite
2022-10-28 17:44:46 +02:00
Lorenzo Delgado
374ff58bed
refactor(node): use lightpush client in waku_node
2022-10-28 16:30:01 +02:00
Alvaro Revuelta
dce8991550
feat(wakunode2): add nwaku agent-string to switch ( #1302 )
2022-10-28 15:12:06 +02:00
Lorenzo Delgado
6b8060d778
feat(testlib): add enable/disable test debug utils
2022-10-28 15:04:29 +02:00
Hanno Cornelius
1a271d9c79
chore: update submodules and bump Nim to 1.6.6 ( #1307 )
...
* chore: update submodules
* fix: libp2p now provides callback to update peer addrs
* fix: breaking change in EthereumNode constructor
* fix: contentType type has changed (again)
* fix: explicit future type
* fix: nim 1.6.6 error handling requirements
* fix: missed a spot - peer info addrs in sim2
* fix: help compiler a bit here
2022-10-28 12:51:46 +03:00
G
240b034d82
feat: add keyfile support for RLN credentials secure storage ( #1285 )
...
* feat(utils): add keyfile + test
* feat(keyfile): make id and version field optional
* feat(rln): enable input password for keyfile encryption
* refactor(keyfile): store multiple keyfiles in single file
* refactor(rln): write and read rln credentials proc using keyfiles + test update
* feat(keyfile): allow skip successful decryption to iterate among multiple keyfiles + test
* fix(rln): add rln-relay-cred-password in wakunode2 config
* chore(keyfile): remove unnencessary echo
* refactor(rln/kesyore): address reviewers' comments
* refactor(rln/keyfile): use defer instead of try/finally
* feat(rln): address reviewers comments; return all successful decryptions
* chore(keyfile): add comments; changed name to loadKeyfiles
* feat(keyfile): chmod 600 for keyfiles
* fix(rln): fix errors raised by readRlnCredentials
* feat(keyfile): add nim-eth tests; address reviewers comments
* fix(keyfile/rln): better error handling
* refactor(keyfile): refactoring nim-eth tests
* fix(keyfile): fix wrong index
* fix(keyfile): fix wrong password generation in test
* feat(keyfile): add wrong mac test
Co-authored-by: Aaryamann Challani <43716372+rymnc@users.noreply.github.com>
2022-10-28 11:13:05 +02:00
Lorenzo Delgado
5314ecefc8
feat(wakunode2): simplify wakunode2 config and decouple peer persistence
2022-10-28 00:05:02 +02:00
Lorenzo Delgado
8999f7ccd1
feat(lightpush): add waku lightpush protocol client
2022-10-25 14:55:31 +02:00
Lorenzo Delgado
a1b9a5973c
chore: extract test procedures and constants into a common module
2022-10-21 15:01:39 +02:00
Lorenzo Delgado
3dbb084d4c
feat(store): add waku store client module
2022-10-20 18:09:40 +02:00
Lorenzo Delgado
2412c0d58d
chore(store): disable temporarily the store resume flaky test case
2022-10-20 14:56:28 +02:00
Hanno Cornelius
57bf163a5c
fix: store cursors should be exclusive and match a DB item ( #1263 )
...
* fix(store): use exclusive cursor
* fix(store): read correct column length
Co-authored-by: Lorenzo Delgado <lorenzo@status.im>
2022-10-20 13:24:40 +03:00
Lorenzo Delgado
c8ac16d6fb
refactor(node): split wakunode into waku_node and wakunode2
2022-10-18 09:05:53 -05:00
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
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
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
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
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
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
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
Lorenzo Delgado
9e4f595f65
refactor(store): invert retention policies dependency on message store interface
2022-09-16 12:55:22 +02:00