11 Commits

Author SHA1 Message Date
Prem Chaitanya Prathi
03ef02a2ff
fix(tests): wrap HmacDrbgContext via newBearSslRng for libp2p v2.0.0
libp2p v2.0.0's 3-arg `random(T, scheme, rng)` overload now takes the
`Rng` wrapper type instead of `var HmacDrbgContext`. My prior
`common.rng()[]` (deref) attempt resolves to `HmacDrbgContext` which
no longer matches.

Wrap our existing `ref HmacDrbgContext` (from `common.rng`) via
`newBearSslRng` to get an `Rng` value, satisfying the new signature
without re-seeding a fresh PRNG on every key generation.
2026-06-04 18:05:52 +05:30
Prem Chaitanya Prathi
5a21455c88
fix(ci): regen nimble.lock for v2.0.0 + disambiguate rng in wakucore
nimble.lock:
  Stale lockfile (inherited from master at rebase time) pinned libp2p
  to ff8d51857, jwt to 18f8378de, json_rpc to status-im 43bbf499, etc.
  — all incompatible with this PR's waku.nimble pin set, and nimble's
  vnext SAT solver was falling back to the global packages.json
  registry (which still maps `jwt` → yglukhov/nim-jwt) when the
  lockfile/active-pin conflict couldn't be reconciled. That registry
  lookup tried to clone yglukhov/nim-jwt at SHA 057ec95… which only
  exists on the vacp2p fork, so the build aborted.

  Regenerated via `nimble lock`. Resulting pins now reflect what
  waku.nimble + libp2p v2.0.0 actually require: libp2p c43199378,
  jwt 057ec95, websock 387a8eb7, json_rpc f05fad25 (chaitanyaprem
  fork), lsquic 3813b849, libp2p_mix 50c4ab4f, mix_rln_spam_protection
  23b278b4.

  Hand-fixed one nimble vnext bug: mix_rln_spam_protection's
  `vcsRevision` was generated as the local logos-delivery HEAD SHA
  instead of the plugin's HEAD; replaced with 23b278b4… (matches
  `version` field's URL+SHA spec and the cached package).

tests/testlib/wakucore.nim:
  libp2p v2.0.0 also exports a `rng` symbol (the new `Rng` wrapper
  type), making the unqualified `rng[]` calls here ambiguous against
  the local `common.rng` template (returns `ref HmacDrbgContext`).
  Qualify the three call sites as `common.rng()[]` so we keep the
  `ref HmacDrbgContext` value that `libp2p_keys.PrivateKey.random` /
  `KeyPair.random` expect.
2026-06-04 17:52:18 +05:30
Darshan K
7a009c8b27
bump libp2p ( v1.14.0 ) (#3627) 2025-10-17 11:49:28 +02:00
fryorcraken
cc66c7fe78 chore!: separate internal and CLI configurations (#3357)
Split `WakuNodeConfig` object for better separation of concerns and to introduce a tree-like structure to configuration.

* fix: ensure twn cluster conf is still applied when clusterId=1
* test: remove usage of `WakuNodeConf`
* Remove macro, split builder files, remove wakunodeconf from tests
* rm network_conf_builder module as it is not used

---------

Co-authored-by: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com>
Co-authored-by: Ivan Folgueira Bande <ivansete@status.im>
2025-05-07 23:05:35 +02:00
Miran
ed0474ade3 chore: fix unused and deprecated imports (#3368) 2025-04-11 18:20:23 +03:00
Ivan FB
9bb567eb0e chore: better proof handling in REST (#3286)
* better proof handling in REST
2025-02-14 11:14:38 +01:00
Darshan K
8da2a9c0a5 chore: refactor relative path to better absolute (#2861) 2024-07-06 00:03:38 +02:00
gabrielmer
9be3221b5d feat: supporting meta field in store (#2609) 2024-05-06 10:20:21 +02:00
Ivan FB
cf6298ca1f Generic re-style with nph 0.5.1 (#2396) 2024-03-16 00:08:47 +01:00
Simon-Pierre Vivier
4638756aef fix: time on 32 bits architecture (#2492)
authored-by: Emil Ivanichkov <emil.ivanichkov@gmail.com>
2024-03-01 07:58:45 -05:00
Hanno Cornelius
5e2e1b6bd0 chore: remove references to v2 (#1898)
* chore: remove references to v2

* fix: lingering rln-relay import path
2023-08-09 18:11:50 +01:00