Bogdan-Ștefan Neacşu
9a45de5874
Remove stale free riders after 24 hours ( #5002 )
2024-10-21 13:15:08 +03:00
Bogdan-Ștefan Neacşu
18c6fd3e3e
Gateway peer fixes ( #4985 )
...
* Create bandwidth entry
* Remove mismatch possibilities
2024-10-18 12:43:36 +03:00
Jędrzej Stuczyński
9341db5d08
removed gateway/nym-node using global double spending bloomfilter
2024-10-10 17:09:51 +01:00
Bogdan-Ștefan Neacşu
a4c6f51fe0
Don't kill gateway on handle drop ( #4934 )
2024-09-27 11:02:39 +02:00
Jędrzej Stuczyński
333ace1f97
Merge branch 'release/2024.11-wedel' into feature/wedel-merge-conflicts
2024-09-26 08:56:11 +01:00
Jon Häggblad
1627146c0e
Make ip-packet-request VERSION pub ( #4925 )
2024-09-25 09:56:32 +02:00
Bogdan-Ștefan Neacşu
1bc26ed79f
Expose error type ( #4924 )
2024-09-24 11:48:54 +02:00
Jon Häggblad
3b7088aeea
Fix nymvpn.com url in mainnet defaults ( #4920 )
2024-09-24 10:25:27 +02:00
Bogdan-Ștefan Neacşu
179d214e21
Check both version and type in message header ( #4918 )
...
* Move client type to the client code
* Check both version and type in header
2024-09-23 17:57:03 +02:00
Jon Häggblad
2a94ce6443
Bump http-api-client default timeout to 30 sec ( #4917 )
2024-09-23 15:45:47 +02:00
Bogdan-Ștefan Neacşu
95ec91daa1
Entry wireguard tickets ( #4888 )
...
* Create credential verifier in authenticator
* Add new version of peer storage with client id
* Fix v1 to what it was before
* Compact storage into ecash verifier
* Fix non-linux build
* Less overlapping conditions
* Remove moved code
* Use handler thread for each peer
* Re-spawn stored handles at startup
* Keep new function without async & Result
* Put query peer in function too
* Query bandwidth
* Fix clippy
* Replace tap with inspect_err
* Fix copyright year
* Handle version 2 on the reqeust deser
* Add protocol type in req/resp messages
2024-09-23 14:49:18 +02:00
Jędrzej Stuczyński
0d2418ef6a
Merge pull request #4885 from nymtech/feature/updated-gateway-registration
...
Feature/updated gateway registration
2024-09-20 09:09:28 +01:00
Bogdan-Ștefan Neacşu
6f0c8dbe73
Fix missing duplication of modified tables ( #4904 )
2024-09-19 18:25:21 +02:00
Jędrzej Stuczyński
be7f00fe52
replaced an assertion with an error return instead
2024-09-19 15:59:04 +01:00
Jon Häggblad
35c94f5c4b
Update cargo deny ( #4901 )
...
* Regenerate deny.toml
* Backport old settings to deny.toml
* Explicitly allow GPL-3 only on our own specific crates
* Update deny.toml for latest changes
* Fix cargo-deny warnings for duplicate crates
* Update cargo-deny-action to v2
2024-09-19 12:53:27 +02:00
Jędrzej Stuczyński
f5863b9668
fixed client key upgrade due to extra Arc
2024-09-19 11:06:50 +01:00
dependabot[bot]
963c54fea2
build(deps): bump semver from 0.11.0 to 1.0.23 ( #4881 )
...
* build(deps): bump semver from 0.11.0 to 1.0.23
Bumps [semver](https://github.com/dtolnay/semver ) from 0.11.0 to 1.0.23.
- [Release notes](https://github.com/dtolnay/semver/releases )
- [Commits](https://github.com/dtolnay/semver/compare/0.11.0...1.0.23 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update for 1.0
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com >
2024-09-19 11:55:10 +02:00
dependabot[bot]
db55a96f91
build(deps): bump toml from 0.5.11 to 0.8.14 ( #4805 )
...
* build(deps): bump toml from 0.5.11 to 0.8.14
Bumps [toml](https://github.com/toml-rs/toml ) from 0.5.11 to 0.8.14.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.5.11...toml-v0.8.14 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Use workspace dependency
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com >
2024-09-19 11:10:34 +02:00
Jędrzej Stuczyński
7c0235ab26
fixed wasm build and trait impl
2024-09-19 10:06:59 +01:00
Jędrzej Stuczyński
3dc62a9a60
Merge pull request #4892 from nymtech/bugfix/ticketbook-false-double-spending
...
Bugfix/ticketbook false double spending
2024-09-19 09:44:43 +01:00
Jędrzej Stuczyński
b3d7c26443
added key upgrade mechanism
2024-09-18 17:43:47 +01:00
Jędrzej Stuczyński
9efeef881a
split types.rs + added additional helpers
2024-09-18 17:43:44 +01:00
Jędrzej Stuczyński
9d8369a5b2
generate pseudorandom salt for deriving aes256gcm-siv key
2024-09-18 17:43:43 +01:00
Jędrzej Stuczyński
cc32eb3904
fixed wasm build
2024-09-18 17:43:43 +01:00
Jędrzej Stuczyński
8cf4977021
assert new gateway keys zeroize on drop
2024-09-18 17:43:43 +01:00
Jędrzej Stuczyński
2c2748832c
cargo fmt
2024-09-18 17:43:42 +01:00
Jędrzej Stuczyński
114db3c1cf
post-rebasing fixes
2024-09-18 17:43:42 +01:00
Jędrzej Stuczyński
b6f07fbfce
warning for unimplemented upgrade
2024-09-18 17:43:42 +01:00
Jędrzej Stuczyński
c39d42b7dd
fixed deserialisation of updated gateway shared materials
2024-09-18 17:43:41 +01:00
Jędrzej Stuczyński
21e9df488f
compatibility with legacy clients
2024-09-18 17:43:40 +01:00
Jędrzej Stuczyński
94113206b2
completing handshake using legacy keys
2024-09-18 17:43:07 +01:00
Jędrzej Stuczyński
71532484a9
updated client handshake to allow derivation of different key types
2024-09-18 17:43:07 +01:00
Jędrzej Stuczyński
8756763875
added support for aead in nym-crypto
2024-09-18 17:43:06 +01:00
Jędrzej Stuczyński
5753b79997
slightly refactored bandwidth tracking
2024-09-18 11:27:35 +01:00
Jędrzej Stuczyński
2a6aa13ecd
fixed client bandwidth being not correctly deducted
2024-09-18 11:12:24 +01:00
Jon Häggblad
ede4b23e8a
Fix clippy::too-long-first-doc-paragraph ( #4897 )
2024-09-18 10:25:49 +02:00
Jędrzej Stuczyński
c8c3928575
put client bandwidth (gateway-side) behind shared pointer
2024-09-17 18:40:24 +01:00
Jędrzej Stuczyński
2fa8da8117
making sure there can be only a single client task claiming more bandwidth
2024-09-17 18:39:49 +01:00
Jędrzej Stuczyński
48bcd7e802
fix: allow updating globally stored signatures
2024-09-17 14:21:42 +01:00
Jędrzej Stuczyński
a708fa2d4a
Merge pull request #4873 from nymtech/feature/stateless-gateway-requests
...
allow clients to send stateless gateway requests without prior registration
2024-09-16 17:00:15 +01:00
Jon Häggblad
086611c7ac
Use serde from workspace ( #4833 )
...
* cargo autoinherit for serde
* cargo autoinherit for bs58 and vergen in cosmwasm-smart-contracts
2024-09-16 11:16:21 +02:00
Bogdan-Ștefan Neacşu
9c514fe3b7
Fix snake case serde ( #4875 )
2024-09-13 11:53:39 +02:00
Jędrzej Stuczyński
a4b47ef3a5
allow clients to send stateless gateway requests without prior registration
2024-09-12 15:57:38 +01:00
Bogdan-Ștefan Neacşu
6db3b34bcb
Bump defguard to github latest version ( #4872 )
...
* Bump defguard to github latest version
* Fix comment location
2024-09-12 13:49:33 +02:00
Bogdan-Ștefan Neacşu
47303bcf48
Gateway database modifications for different modes ( #4868 )
...
* Gateway db modifications for different modes
* Add exit mixnet and replace whitespaces
2024-09-12 11:58:20 +02:00
dependabot[bot]
f616b3c15a
build(deps): bump strum from 0.25.0 to 0.26.3 ( #4848 )
...
* build(deps): bump strum from 0.25.0 to 0.26.3
Bumps [strum](https://github.com/Peternator7/strum ) from 0.25.0 to 0.26.3.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits/v0.26.3 )
---
updated-dependencies:
- dependency-name: strum
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update to handle deprecation error
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com >
2024-09-11 23:18:11 +02:00
Jędrzej Stuczyński
be2b44c46b
Merge pull request #4867 from nymtech/feature/2024.10-caramello-merge
...
Feature/2024.10 caramello merge
2024-09-11 15:10:02 +01:00
dependabot[bot]
f6db1a87c6
build(deps): bump gloo-timers from 0.2.6 to 0.3.0 ( #4852 )
...
Bumps [gloo-timers](https://github.com/rustwasm/gloo ) from 0.2.6 to 0.3.0.
- [Release notes](https://github.com/rustwasm/gloo/releases )
- [Changelog](https://github.com/rustwasm/gloo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/gloo/compare/gloo-timers-v0.2.6...0.3.0 )
---
updated-dependencies:
- dependency-name: gloo-timers
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 15:23:15 +02:00
Jędrzej Stuczyński
e8e86c273e
Merge branch 'release/2024.10-caramello' into feature/2024.10-caramello-merge
2024-09-11 12:43:39 +01:00
dependabot[bot]
c08e7d2b11
build(deps): bump the patch-updates group with 22 updates ( #4846 )
...
Bumps the patch-updates group with 22 updates:
| Package | From | To |
| --- | --- | --- |
| [anyhow](https://github.com/dtolnay/anyhow ) | `1.0.83` | `1.0.87` |
| [async-trait](https://github.com/dtolnay/async-trait ) | `0.1.81` | `0.1.82` |
| [clap](https://github.com/clap-rs/clap ) | `4.5.16` | `4.5.17` |
| [clap_complete](https://github.com/clap-rs/clap ) | `4.5.2` | `4.5.26` |
| [clap_complete_fig](https://github.com/clap-rs/clap ) | `4.5.0` | `4.5.2` |
| [const_format](https://github.com/rodrimati1992/const_format_crates ) | `0.2.32` | `0.2.33` |
| [curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek ) | `4.1.2` | `4.1.3` |
| [log](https://github.com/rust-lang/log ) | `0.4.21` | `0.4.22` |
| [parking_lot](https://github.com/Amanieu/parking_lot ) | `0.12.2` | `0.12.3` |
| [quote](https://github.com/dtolnay/quote ) | `1.0.36` | `1.0.37` |
| [schemars](https://github.com/GREsau/schemars ) | `0.8.19` | `0.8.21` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.209` | `1.0.210` |
| [serde_derive](https://github.com/serde-rs/serde ) | `1.0.209` | `1.0.210` |
| [serde_json](https://github.com/serde-rs/json ) | `1.0.127` | `1.0.128` |
| [tar](https://github.com/alexcrichton/tar-rs ) | `0.4.40` | `0.4.41` |
| [tokio-stream](https://github.com/tokio-rs/tokio ) | `0.1.15` | `0.1.16` |
| [tokio-util](https://github.com/tokio-rs/tokio ) | `0.7.11` | `0.7.12` |
| [url](https://github.com/servo/rust-url ) | `2.5.0` | `2.5.2` |
| [wasm-bindgen-test](https://github.com/rustwasm/wasm-bindgen ) | `0.3.42` | `0.3.43` |
| [http-body-util](https://github.com/hyperium/http-body ) | `0.1.1` | `0.1.2` |
| [hyper-util](https://github.com/hyperium/hyper-util ) | `0.1.3` | `0.1.5` |
| [tokio-tun](https://github.com/yaa110/tokio-tun ) | `0.11.4` | `0.11.5` |
Updates `anyhow` from 1.0.83 to 1.0.87
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.83...1.0.87 )
Updates `async-trait` from 0.1.81 to 0.1.82
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.81...0.1.82 )
Updates `clap` from 4.5.16 to 4.5.17
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.16...clap_complete-v4.5.17 )
Updates `clap_complete` from 4.5.2 to 4.5.26
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.2...clap_complete-v4.5.26 )
Updates `clap_complete_fig` from 4.5.0 to 4.5.2
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete_fig-v4.5.0...clap_complete_fig-v4.5.2 )
Updates `const_format` from 0.2.32 to 0.2.33
- [Release notes](https://github.com/rodrimati1992/const_format_crates/releases )
- [Changelog](https://github.com/rodrimati1992/const_format_crates/blob/master/Changelog.md )
- [Commits](https://github.com/rodrimati1992/const_format_crates/commits )
Updates `curve25519-dalek` from 4.1.2 to 4.1.3
- [Release notes](https://github.com/dalek-cryptography/curve25519-dalek/releases )
- [Commits](https://github.com/dalek-cryptography/curve25519-dalek/compare/curve25519-4.1.2...curve25519-4.1.3 )
Updates `log` from 0.4.21 to 0.4.22
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.21...0.4.22 )
Updates `parking_lot` from 0.12.2 to 0.12.3
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.12.2...0.12.3 )
Updates `quote` from 1.0.36 to 1.0.37
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.36...1.0.37 )
Updates `schemars` from 0.8.19 to 0.8.21
- [Release notes](https://github.com/GREsau/schemars/releases )
- [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GREsau/schemars/compare/v0.8.19...v0.8.21 )
Updates `serde` from 1.0.209 to 1.0.210
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.209...v1.0.210 )
Updates `serde_derive` from 1.0.209 to 1.0.210
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.209...v1.0.210 )
Updates `serde_json` from 1.0.127 to 1.0.128
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/1.0.127...1.0.128 )
Updates `tar` from 0.4.40 to 0.4.41
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.40...0.4.41 )
Updates `tokio-stream` from 0.1.15 to 0.1.16
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.15...tokio-stream-0.1.16 )
Updates `tokio-util` from 0.7.11 to 0.7.12
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.11...tokio-util-0.7.12 )
Updates `url` from 2.5.0 to 2.5.2
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.5.0...v2.5.2 )
Updates `wasm-bindgen-test` from 0.3.42 to 0.3.43
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
Updates `http-body-util` from 0.1.1 to 0.1.2
- [Release notes](https://github.com/hyperium/http-body/releases )
- [Commits](https://github.com/hyperium/http-body/compare/http-body-util-v0.1.1...http-body-util-v0.1.2 )
Updates `hyper-util` from 0.1.3 to 0.1.5
- [Release notes](https://github.com/hyperium/hyper-util/releases )
- [Changelog](https://github.com/hyperium/hyper-util/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper-util/compare/v0.1.3...v0.1.5 )
Updates `tokio-tun` from 0.11.4 to 0.11.5
- [Commits](https://github.com/yaa110/tokio-tun/compare/0.11.4...0.11.5 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: clap_complete_fig
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: const_format
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: curve25519-dalek
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: parking_lot
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: schemars
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: serde_derive
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: tar
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: tokio-stream
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: wasm-bindgen-test
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: http-body-util
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: hyper-util
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
- dependency-name: tokio-tun
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch-updates
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 10:22:42 +02:00