Jędrzej Stuczyński
9a68702d4d
Feature/config refactor ( #3498 )
...
* revamping mixnode connfig
* wip
* native client config revamping
* wip
* building socks5
* using const for mixnnode config template
* compiling updated gateway
* nym-api
* nym-sdk
* everything compiling once more
but definitely not compatible with CI and older versions (yet)
* creating full directory structure on init
* renamed paths to storage_paths and fixed mixnode template
* mixnode config migration
* gateway config migration
* nym-api config migration
* native client config migration
* socks5 client config migration
* NR config migration
* removed deprecations (that will be resolved in the following PRs) + fixed clippy
* nym-connect clippy
* nym-connect config updates
* outfox fixes
* defined socks5 lib config
* clippy
* fixed wasm client build
* removed explicit packet_type argument when starting base client
it's known implicitly from the previously passed config struct
* Empty commit
* fixed re-using gateway information when client configs are re-initialised
* fixed borrowing id value in nym-connect
* post-rebase fixes
* updated 'old_config' versions
---------
Co-authored-by: Tommy Verrall <tommy@nymtech.net >
2023-06-07 17:06:35 +01:00
Drazen Urch
b5c8b69547
Outfox integration ( #3331 )
...
* Experiment with serde
* Framed encoding serde POC
* Outfox framing
* Outfox rest compat (#3333 )
* Outfox forwarding compat
* Tidy up interface
* PacketSize compat
* Address PR comments
* Rebase on develop
commit 342883fcbe
Author: durch <durch@users.noreply.github.com >
Date: Thu Apr 27 09:17:18 2023 +0200
Put back PacketType 1
commit 61a0ee5a19
Author: Tommy Verrall <tommyvez@protonmail.com >
Date: Wed Apr 26 16:37:29 2023 +0100
change output for cpu-cycle management logs
commit 3956109c7e
Author: Tommy Verrall <tommy@nymtech.net >
Date: Wed Apr 26 12:13:22 2023 +0100
change the workflow file to build with cpucycles
commit 8d725b13c5
Author: durch <durch@users.noreply.github.com >
Date: Mon Apr 24 13:14:58 2023 +0200
Outfox client compat
commit 4d166c389b
Author: durch <durch@users.noreply.github.com >
Date: Fri Apr 21 00:30:46 2023 +0200
Address PR comments
commit 145c3c1223
Author: durch <durch@users.noreply.github.com >
Date: Fri Apr 21 00:12:35 2023 +0200
Rename PacketMode
commit cbd654d6fd
Author: Drazen Urch <drazen@urch.eu >
Date: Thu Apr 20 23:59:40 2023 +0200
Outfox rest compat (#3333 )
* Outfox forwarding compat
* Tidy up interface
* PacketSize compat
commit e7be91a94c
Author: durch <durch@users.noreply.github.com >
Date: Wed Apr 19 16:36:48 2023 +0200
Remove serde cruft
commit 582e7d566a
Author: durch <durch@users.noreply.github.com >
Date: Wed Apr 19 16:24:09 2023 +0200
Outfox framing
commit 6464da5f01
Author: durch <durch@users.noreply.github.com >
Date: Tue Apr 18 22:23:02 2023 +0200
Framing compat
commit d5e77e499b
Author: durch <durch@users.noreply.github.com >
Date: Tue Apr 18 18:18:54 2023 +0200
Framed encoding serde POC
commit f086f9c35a
Author: durch <durch@users.noreply.github.com >
Date: Tue Apr 18 16:54:21 2023 +0200
Experiment with serde
* Client tweaks
* Speed up from_plaintext
* SurbAcks
* More work on the reciever end, and outfox format
* Cleanup and fmt
* Wrap up rebase
* Happy clippy
* Fix lock files
* Final cleanup
2023-05-29 10:05:11 +02:00
Simon Wicky
a55d604bf5
increase connection buffer size to 2000 ( #3439 )
2023-05-23 16:08:55 +02:00
Jędrzej Stuczyński
88f57e6d87
clients compiling
2023-05-09 10:46:41 +01:00
Jon Häggblad
dc5c765ecb
Last set of crates to add the nym- prefix to ( #3286 )
...
* Add nym- prefix to mixnode-common
* Add nym- prefix to mixnet-client
* Add nym-client- prefix to websocket-requests
* Makefile: add check target
* Rename to nym-credential-client
* rustfmt
* update to nym-credential-client in github workflow
2023-04-07 21:25:28 +02:00
Jon Häggblad
95e2e3d0d2
Comment out unused code that breaks clippy ( #3287 )
2023-04-06 23:05:47 +02:00
Jon Häggblad
ee656aa3ef
clippy: allow unused generic parameter
2023-04-06 12:47:19 +02:00
Jon Häggblad
84c1679973
Add more nym- crate prefixes ( #3284 )
...
* Add nym- prefix to nymcoconut
* Add nym- prefix to validator-client
* Add nym- prefix to gateway-requests
* Add nym- prefix to mobile-storage
* Add nym- prefix to gateway-client
* Add nym- prefix to client-core
* rustfmt
2023-04-06 09:04:49 +02:00
Jędrzej Stuczyński
01aa06e488
standarise printing of banner based on tty
2023-04-04 10:27:38 +01:00
Jędrzej Stuczyński
ac9290de27
clippy
2023-04-04 10:27:38 +01:00
Jędrzej Stuczyński
479327849a
gateway: added --output to commands that strictly require it
2023-04-04 10:26:41 +01:00
Jędrzej Stuczyński
d17aa72829
chore: clippy
2023-03-30 14:17:37 +01:00
Jędrzej Stuczyński
d62658f515
added --output json|text to mixnode and gateway 'sign' commands ( #3251 )
2023-03-30 10:23:53 +01:00
Jędrzej Stuczyński
9b62d18101
Merge remote-tracking branch 'origin/release/v1.1.14' into develop
2023-03-28 10:28:11 +01:00
Jędrzej Stuczyński
c9c0de1fba
Offline signing ( #3175 )
...
* renamed secp265k1 to secp256k1
* added optional 'explicit_signer_data' argument for sign method
* wip
* made client signer generic
which required to undertake an adventure into coconut bandwidth trait bounds...
* separate wrapper for TxSigner
* moves signing-related features to separate module
* fixed build of binaries from outside default workspace
* offline signing example
* fixed wallet build
* post rebasing formatting
* fixed bity integration build
* making clippy happier
* fixed post-rebase bip39 dependency version
2023-03-27 10:15:30 +01:00
Jędrzej Stuczyński
5e04f48500
bugfix: drop tasks to connections closed by remote ( #3190 )
...
* applied patch #3187
* applied the same concept to the verloc listener
2023-03-23 12:09:43 +01:00
Pierre Dommerc
7ff043d8df
Feature/bonding signature UI ( #3157 )
...
* wip
* updated gateways 'sign' command
* in-wallet verification of mix bonding signature
* changed signature of vesting contract trait method
* updated wallet bonding endpoints
* tauri commands for generating signing payloads
* renamed signer to sender
* verifying new signatures in the contract
* fixed existing mixnet unit tests
* unit tests for invalid signatures
* fixed other usages of MessageSignature + FromStr
* using base58-encoded serialization
* removed owner-signature from details response
* added ability to construct bonding payloads via nym-cli
* removed signature from bonding payload args
* moved 'message_type' from 'ContractMessageContent' to 'SignableMessage'
* refactor(wallet-rust): rename owner_signature args
* feat(wallet-bonding): handle user signature
* feat(wallet-bonding): fix bonding
* feat(wallet-bonding): fix lint issue
* feat(wallet-bonding): ui adjustment
* make the location field mandatory for payload signing
* feat(wallet-bonding): remove ownersignature field, remove dead code
---------
Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com >
Co-authored-by: Tommy Verrall <tommyvez@protonmail.com >
2023-03-10 15:53:21 +01:00
Jon Häggblad
d315a2a91b
Add nym prefix to coconut contracts and crates ( #3160 )
...
* Add nym prefix to coconut-dkg
* Add nym prefix to coconut-bandwidth
* Add nym prefix to bandwidth-claim-contract
* Add nym prefix to coconut-bandwidth-contract-common
* Add nym prefix to coconut-dkg-common
* Add nym prefix to group-contract-common
* Add nym prefix to multisig-contract-common
* Add nym prefix to coconut-interface
* Add nym prefix to credential-storage
* rustfmt
* Mark coconut-test crate as private
* Fix build errors
* rustfmt
2023-03-08 13:17:09 +01:00
Jon Häggblad
24b9b17e64
Add a few more nym- crate prefixes ( #3158 )
...
* Add nym- to socks5-prefixes crate
* Update imports
* rustfmt
* Add nym-socks5 prefix to proxy-helpers crate
* rustfmt
* Add nym prefix to ordered-buffer crate
* rustfmt
* Add nym prefix to service-providers-common crate
* rustfmt
* Add nym prefix to dkg crate
* Add nym prefix to credentials crate
* rustfmt
* fix build fail in tests
2023-03-08 11:56:29 +01:00
Jon Häggblad
2f2dfff53d
Add nym prefix to a few more crates ( #3092 )
...
* Add nym- prefix to execute crate
* Add nym- prefix to nonexhaustive-delayqueue
* Add nym- prefix to config crate
* Update imports
* Update more module paths
* rustfmt
* Add nym- prefix to statistics-common
* Update explicit module paths
* rustfmt
2023-02-23 10:01:46 +01:00
Jon Häggblad
b62e221aad
gateway: stray println that should be eprintln
2023-02-21 15:15:53 +01:00
Jon Häggblad
4587d5da26
Add nym- prefix to network-defaults ( #3069 )
...
* network-defaults: update cargo metadata
* Add nym- prefix to network-defaults crate
* Some manual updating
* rustfmt
2023-02-21 14:26:28 +01:00
Jon Häggblad
b1121dabb9
Merge 4 tiny crates into nym-bin-common ( #3065 )
...
* Rename to bin-common
* Merge into new crate
* Merge 3 crates into bin-common
* WIP
* Move build.rs to the correct place
* regex nym_bin_common
* regex nym_bin_common::build_information
* regex nym_version_checker
* Update some explicit mod paths
* Makefile: add nym-connect-android
* Additional fixes
* rustfmt
* Update crate metadata
* Move completions crate into nym-bin-common
* Makefile: add examples
* Fix examples
* rustfmt
2023-02-21 11:30:23 +01:00
Jon Häggblad
46e2c74a98
Rename crate to nym-task ( #3064 )
...
* Rename to nym-task
* Update imports to use nym_task
* Update to nym_task in explicit module prefix
* Touchups and rustfmt
* rustfmt
* crate metadata
* fix nym-connect-android
2023-02-20 21:55:29 +01:00
Jon Häggblad
fede9cc194
Add nym prefix to topology and version checker crates ( #3061 )
...
* Rename crate to nym-topology
* Rename crate to nym-version-checker
* Remove unused topology
* rustfmt
2023-02-20 17:05:08 +01:00
Jon Häggblad
c75c5e0903
Rename to crate name to nym-sphinx ( #3060 )
...
* nymsphinx: rename to nym- prefix in Cargo.toml files
* regex use nymsphinx to use nym_sphinx
* all: updated explict crate name in a few places
2023-02-20 16:28:08 +01:00
Jon Häggblad
0b93215941
rustfmt
2023-02-15 16:13:53 +01:00
Jon Häggblad
8f4fd62957
rename pemstore to nym-pemstore
2023-02-15 16:13:53 +01:00
Jon Häggblad
4844ac953a
rename crypto to nym-crypto
2023-02-15 16:13:53 +01:00
Bogdan-Ștefan Neacșu
7e90ff8b85
Fix nyxd typo
2023-02-14 12:17:11 +02:00
Jon Häggblad
037cd54573
Merge branch 'release/v1.1.9' into develop
2023-02-08 13:45:37 +01:00
Jon Häggblad
59cec6f03c
Don't drop in mixnet connection handlers ( #2963 )
2023-02-08 13:14:12 +01:00
Bogdan-Ștefan Neacşu
3099f2ead3
Hide coconut runtime flags ( #2990 )
2023-02-08 13:00:17 +01:00
Jon Häggblad
21e636616d
Merge tag 'nym-binaries-v1.1.8' into develop
2023-02-08 08:25:24 +01:00
Jędrzej Stuczyński
c218cba96c
Feature/default nym api ( #2898 )
...
* Setting default 'id' if not provided
* Modified 'NymConfig' to always require 'id'
* moved creation of nym-api directories away from 'override_config'
* missing optional id usage in nym-connect
* changelog
* Removed default value for '--id' argument
2023-01-25 15:49:28 +01:00
Bogdan-Ștefan Neacşu
8336d0612a
Remove coconut feature ( #2890 )
...
* Remove coconut feature
* Remove github workflow remainings
* Only run dkg if coconut enabled
* Fix typo
* Update changelog
2023-01-25 15:59:37 +02:00
Bogdan-Ștefan Neacşu
64c963e36e
Feature/dkg rerun ( #2839 )
...
* Reset contract state when dkg needs rerun
* Reset nym-api for rerun
* Gateway updates signer APIs at runtime
* Fix clippy
* Add epoch id
* Use IndexedMap for shares
* Query with epoch id
* Add Clone to client traits
* Pass nyxd client instead of api data
* Get the specific epoch vk
* Make wasm work
* Remove wasm test runs
As there are no wasm tests and the target_arch macros are not compatible
with the cargo test environment, we can safely remove (for now) the wasm
test target runs.
* Put epoch_id in storage pk
* Gateway uses old keys but current verifiers
* Add group contract to env
* Move group msg in common
* Only run DKG if part of group
* Clippy test
* Rename wasm_storage to wasm_mockups
* Update changelog
2023-01-19 11:15:07 +02:00
Dave Hrycyszyn
80017d258d
Merge branch 'release/v1.1.6' into develop
2023-01-17 14:10:15 +00:00
durch
ea35a37d4c
Replace println with eprintln!
2023-01-17 13:39:49 +01:00
Jędrzej Stuczyński
6b96e474f7
made most of cli boolean arguments optional ( #2819 )
...
so that if not provided, they would not overwrite config values
2023-01-16 12:52:29 +01:00
Jon Häggblad
6b52132501
gateway: don't shutdown on connection handler drop ( #2848 )
2023-01-16 10:31:01 +01:00
Jon Häggblad
dc71f6e94d
common: dedup and move banner to common/logging ( #2846 )
2023-01-16 08:32:35 +01:00
Jędrzej Stuczyński
b473aeb3be
Feature/gateway graceful shutdown ( #2834 )
...
* task dependency
* unifying some startup code and passing TaskClient around
* graceful shutdown handling for mix socket listener
* graceful shutdown handling for clients listener
* graceful shutdown handling for packet forwarding
* unified waiting for interrupt across binaries
* made 'validate_bech32_address_or_exit' into a function that returns proper Result
* printing formatted message on main error
* fixed failing test
* removed duplicate code that should have been gone ages ago
* ibid
* removed biased selection for authenticated handler
* minor refactoring to 'ensure_config_version_compatibility'
2023-01-13 11:56:37 +00:00
Jędrzej Stuczyński
bf5b8fab85
made most of cli boolean arguments optional ( #2819 )
...
so that if not provided, they would not overwrite config values
2023-01-11 12:14:16 +00:00
Jędrzej Stuczyński
5b14eecf82
bugfix: for Default config impl generate fresh mnemonic over using a hardcoded one ( #2806 )
2023-01-10 10:39:58 +00:00
Drazen Urch
4a8a9096dd
Save to JSON in addition to printing ( #1864 )
...
* Save to JSON in addition to printing
* Save node details to json for mixnode
* Remove Cargo.locks
* Cli ergonomics
* Json output for gateway
2023-01-09 12:51:21 +01:00
Jędrzej Stuczyński
88d813b9c1
Feature/optional set trait ( #2773 )
...
* Defined OptionalSet trait
* extended the trait to handle environment
* sample implementation for the gateway
* implementation for mixnode
* Added the same feature to nym-api config + made some config types stricter
* fixed compilation and linter issues
* keeping track of parsing error
* attempt at using the trait for the client configs
* Streamlined more arguments
* Removed deprecation on setters
* fixed incorrect test constructor
* missed rebase fixes
2023-01-06 18:13:25 +00:00
Dave Hrycyszyn
29091aab8e
Feature/rename nymd to nyxd ( #2696 )
...
* Renaming all instances of nymd to nyxd
* Might as well get the changelogs too
* Making it clearer that an ApiClient is a NymApiClient
* Lining up config templates with struct keys on gateway
* Changed the last references to validator_urls to nyxd_urls
* Fixed up a few type errors after refactoring
* Changed the changelog
* Fixed typo in changelog
* Further instances of renaming 'nymd' + introducing additional clap aliases
* updated environmental variables and allowed usage of deprecated variants
* missing occurences of coconut-locked environmental variables
Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com >
2023-01-05 15:35:47 +00:00
Jędrzej Stuczyński
5f4926dd49
feature: use clap derive for nym-api + use stricter validation for other binaries ( #2772 )
...
* fixed all uses of deprecated clap methods
* updated all uses of clap to 4.0
* unified obtaining build information
* moved around the imports
* Moved all nym-api arguments to ApiArgs and simplified parsing
* Using common shutdown signal code
* Using clap for parsing Vec<Url>
* stricter validation of socks5-client arguments
* ibid for the native client
* ibid for the gateway
* ibid for the mixnode
* clippy
2023-01-05 10:32:57 +00:00
Jędrzej Stuczyński
a97c913bb1
Fixed missing feature lock for coconut-exlusive fields ( #2767 )
2023-01-04 14:00:55 +00:00