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
Bogdan-Ștefan Neacşu
63d0ab49e1
Move credential verification into common crate ( #4853 )
...
* Move cred verification to common crate
* Put crate in toml file manually
2024-09-09 19:13:10 +02:00
Jędrzej Stuczyński
c3aec2b01f
update wireguard peers without replacing rows
2024-09-09 15:22:20 +01:00
Jędrzej Stuczyński
c023c8fb9f
updating shared keys without deleting the row
2024-09-09 15:22:20 +01:00
Jędrzej Stuczyński
74252269bc
utility to convert private keys into keypairs
2024-09-09 15:22:19 +01:00
Jon Häggblad
babc84779c
Backport 4844 and 4845
2024-09-09 16:19:04 +02:00
Jon Häggblad
7e40207d46
Fix test failure in ipr request size ( #4844 )
...
* Fix test failure in ipr request size that suddenly appeared
* Use fixed date in unit test
2024-09-09 12:01:24 +02:00
Jędrzej Stuczyński
04a2f59034
fixed clap group names
2024-09-09 09:10:19 +01:00
Jędrzej Stuczyński
052dbeaef8
adjusting the API and fixing CI
2024-09-09 09:10:18 +01:00
Jędrzej Stuczyński
fb0b9da14f
revamped ticketbook serialisation and exposed additional cli methods
2024-09-09 09:10:17 +01:00
Bogdan-Ștefan Neacşu
18891e5f20
Use ecash credential type for bandwidth value ( #4840 )
...
* Use ecash credential type for bandwidth value
* Fill explicit default value for args
* Use up-to-date values for tickets
* Fix sdk example default value
* Another default
* Fix sdk test
* Fix TicketTypeRepr default
2024-09-05 13:19:19 +02:00
Jędrzej Stuczyński
f3fcef60c3
Merge pull request #4822 from nymtech/feature/mixnet-contract-update-admin
...
added explicit updateable admin to the mixnet contract
2024-09-04 10:22:39 +01:00
Jędrzej Stuczyński
ed7a84a1ce
made 'owner' field optional to prepare for its future removal
2024-09-04 09:55:23 +01:00
Jędrzej Stuczyński
48e18684a2
Merge pull request #4821 from nymtech/bugfix/bonding-signature
...
using legacy signing payload in CLI and verifying both variants in contract
2024-09-03 16:36:09 +01:00
Jędrzej Stuczyński
858b6c6094
restored (and deprecated) 'owner' field in ContractState
2024-09-03 14:31:11 +01:00
Bogdan-Ștefan Neacşu
7b4dc78f41
Remove wireguard feature flag and pass runtime enabled flag ( #4839 )
...
* Remove wireguard feature flag
* Use wg enabled runtime flag
* Fix unintended flag removal
2024-09-03 15:25:05 +02:00
Bogdan-Ștefan Neacşu
bb7a8e84e4
Eliminate cancel unsafe sig awaiting ( #4834 )
...
* Eliminate cancel unsafe sig awaiting
* Fix wasm build
* Simplify spawn call
* Fix wasm lint
2024-09-03 15:24:49 +02:00
Mark Sinclair
17bdb583b5
Add get_mixnodes_described to validator_client ( #4725 )
...
* Add get_mixnodes_described to validator_client
* Add methods to client to get blacklisted mixnodes and gateways
---------
Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com >
2024-09-03 12:34:31 +02:00
Jon Häggblad
d0b380cd99
Remove serde_crate named import ( #4832 )
...
* Run cargo autoinherit following last weeks dependabot updates
* Remove serde_crate named import
2024-09-02 15:51:56 +02:00
Jon Häggblad
51d1803ddd
Run cargo autoinherit following last weeks dependabot updates ( #4831 )
2024-09-02 15:24:52 +02:00
Jędrzej Stuczyński
a7910c1049
Merge pull request #4807 from nymtech/dependabot/cargo/bs58-0.5.1
...
build(deps): bump bs58 from 0.4.0 to 0.5.1
2024-08-29 22:32:49 +01:00
dependabot[bot]
6b93309482
build(deps): bump bs58 from 0.4.0 to 0.5.1
...
Bumps [bs58](https://github.com/Nullus157/bs58-rs ) from 0.4.0 to 0.5.1.
- [Changelog](https://github.com/Nullus157/bs58-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Nullus157/bs58-rs/compare/0.4.0...0.5.1 )
---
updated-dependencies:
- dependency-name: bs58
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-29 16:17:17 +00:00
dependabot[bot]
4d212f73fc
build(deps): bump rand from 0.6.5 to 0.8.5
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.6.5 to 0.8.5.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.6.5...0.8.5 )
---
updated-dependencies:
- dependency-name: rand
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-29 16:16:07 +00:00
Jędrzej Stuczyński
d7a7b643ef
Merge pull request #4808 from nymtech/dependabot/cargo/base64-0.22.1
...
build(deps): bump base64 from 0.13.1 to 0.22.1
2024-08-29 17:14:04 +01:00
Dinko Zdravac
a0fea6edb4
Add axum server to nym-api ( #4803 )
...
* Migrate nym-api HTTP server from rocket to axum (#4698 )
Migrate endpoints to Axum
* Squashed after PR review
Initial WIP
- bootstrap axum server with same data as rocket
- start axum server alongside rocket
- add routes for circulating-supply, contract-cache, network
- write simple bash validation that migrated APIs return 200
- mark rocket parts of code as deprecated
- start more complicated routes: WIP
Init storage always
Add coconut routes
Add api-status routes
Expand tests
WIP
Migrate unstable APIs with query params
Update bash tests
Add node-status routes
Redirect / to /swagger
Update API tests
Implement graceful shutdown
rustfmt
Fix clippy
* Add ecash routes after rebase
* PR feedback
- add CORS layer
- move logger to common crate
- remove global log filters for nym-api and axum
* Serve OpenAPI for all endpoints (#4761 )
* Playing around with swagger
* Generate OpenAPI for /status routes
* Phase out static_routes as strings
- also nest routers in a clearer way
* Generate OpenAPI for /network routes
* Generate OpenAPI for /api-status routes
* Generate OpenAPI for "nym nodes" routes
* Fix some network-monitor routes
* Generate OpenAPI for /ecash routes
* Add utoipa feature to /common mods
* Add OpenAPI for unstable routes
* Fix MixNodeDetails field in models
* Introduce axum feature flag (#4775 )
* Add Axum bind_address to config
* Introduce axum feature flag
* Add comment to template.rs
* Add Github action to build wtih `axum` feature
* Refactor server start & shutdown (#4777 )
* Clippy: don't forget axum feature
* Refactor router so it's safer
* Implement graceful shutdown
* Nicer pattern matching
* Better Result syntax
2024-08-29 15:31:01 +02:00
dynco-nym
33b85a3ca1
Fix additional one
2024-08-29 08:47:16 +02:00
benedetta davico
a3183ab313
Merge pull request #4819 from nymtech/add-ecash-contract
...
adding ecash contract address
2024-08-29 07:26:46 +02:00
dynco-nym
3635cbdc8d
Replace deprecated code
2024-08-29 01:22:51 +02:00