* Updated built dependency
So that it wouldn't fail on nwindows
* Concurrent RW client-side
* Draft of a ProxyRunner
* Super experimental proxy runner for provider
Very much WIP
* Extracting shared code + cleanup
* Logging cleanup
* Removed redundant close request
* Changed identity keypair to use ed25519
* Encryption key is now x25519 based + compatibiltiy with sphinx
* Pathing and import fixes
* Moved all asymmetric keys to sub-module in crypto
* Extracted aes to separate module
* kdf module in crypto
* Ability to perform diffie hellman on encryption keys
* ecdsa on identity keys
* Extremely rough and incomplete registration handshake
* Authentication primitives
* Creating new random authenticationIV
* Wrapper type for the derived shared key
* Removed AuthToken in favour of using SharedKey for authentication
* Gateway identity keys
* Registration handshake without error mapping
* Gateway address in client config
* Added extra key for gateway presence
* Updated pemstore to work on borrows instead
* Gateway client trying to perform the handshake
* Gateway changes to allow for handshake and shared key
* Debug trait on sharedkey
* native client using updated gateway client
* Slightly updated gateway API
* Minor cleanup
* Fixed pemstore to correctly save multiple keypairs
* Gateway actually deriving shared key during handshake
* Gateway sending correct mid-handshake message
* Missing quotation mark in client config template
* Fixed template for correct shared key serialization
* Fixed gateway authentication
* Fixed tests
* Using correct gateway key when converting to sphinx node
* "get_all_clients" takes them from gateways as opposed to providers now
* cargo fmt
* Renamed pemstore methods
* Unused import
* Encryption of forward requests between client and gateway
* Updated sphinx dependency to use public revision
* Sending 'error' on handshake processing error
* Removed some dead code
* Dead code I forgot to remove before
* Extracted AckAes128Key into a struct
* Slight pemstore revamp allowing for symmetric key store
* ibid.
* PemStorableKey for SharedKey
* Introduced single location responsible for key management for client
* WIP
* Sphinx version update
* Stop using NodeAddressBytes for two distinct and confusing purposes
* Abstracting away SocketAddr from sphinx forwarding
* Passing the bool for reply surbs
* Attack plan for replies + encryption
* Comment + removed variable binding
* ReplySURB usage
* Topology import in nymsphinx
* Sphinx version update
* Changed 'Recipient' to contain client's encryption key
* Message preparation taking shape!
* reply surb also containing the encryption key
* Very initial message receiver
* Sphinx version update
* A possibly working way of receiving surbs
* Fixed incorrect field name in client config template
* camel casing all request arguments
* Renamed and moved `MessageMode` to more appropriate file
* Restored reconstruction tests
* Removed dead code from chunking
* Made rust examples compilable
* reply SURB key storage
* Replies as an InputMessage
* Forgotten commented code
* No retransmission processing for cover or replies
* Received reply processing
* Renamed client pathfinder to something more appropriate
* Made HasherOutputSize public
* Added key store path to config
* Reply surb attaching key digest when used
* Changes due to previous renaming
* Removed comment
* Fixed insert_encryption_key
* Assigning initial value of key store path
* Computing key digest with correct algorithm
* Initial and presumably temporary request serialization
* hacky way of introducing 'FragmentIdentifier' for replies
* Moved responsibility of reply encryption, padding, etc, to message preparer
* Optional recipient in try_get_valid_topology_ref
* Handling new reply surbs with acks and padding
* Updated go and python examples to include replies in text and binary cases
* Updated rust examples + binaryserverresponse
* Helpers in rust examples
* And updated JS example
* Moved shared key generation function to crypto crate
* Cover traffic encryption!
* hmac computation in crypto
* Updated aes imports due to new dependencies
* hkdf made more generic
* crypto cleanup + algorithms in params
* Clippy cleanup pass
* Generating encryption+mac shared keys between client and gateway
* MACs attached to forward requests to gateway
* Gateway messages encrypted and mac'd
* Lowered logging level
* compiler warning cleanup
* Some minor cleanup
* Generic stream cipher
* Generic shared key derivation + algorithm definitions
* Project-wide AES clean-up
* Comment fix
* Removed commented imports
* Updated comments
* Fixed topology test fixture
* Ability to send sphinx packets of different sizes + more efficient decoding
* Closing connection on connection corruption
* Missing semicolons
* Missing license notices
* Default for packetsize
* Split nymsphinx
* Replaced Mutex with RwLock for TopologyAccessor + impl Deref
* Sphinx update + import cleanup
* Moved packet_sizes file
* Updated NymTopology API
* sphinx version bump
* Missing license notice
* nymsphinx-params crate
* Changes due to ibid.
* Chunking rework to allow variable size fragments
* Initial ack crate
* Version bump to new dev build
* Cargo lock changes
* random_route_to_gateway by node address
* exposing getting read permit
* Very initial draft on ack control
* Correctly dereferencing out of topology read permit
* All pending changes + compilation todo!s
* Restricted scope of deref on TopologyAccessorInner
* Type path alias for generate_key
* Derived traits for MessageChunker
* Ack control starting to take shape!
* Awaiting callbacks
* Most of work done on acks. Now to wire it all together
* Import cleanup
* rng generalization
* Connected real traffic together; only acks from gateway left
* Removed redundant things from nymsphinx::utils
* nymsphinx-cover crate
* Ack-related fields in client config
* Decreased packet store log level
* Restored forward sphinx request
* Slight adjustements to surb acks
* Changed TopologyReadPermit from type alias into a struct
* Changes due to ibid.
* Sphinx version upgrade
* Gateway being able to understand and handle acks
* Special Cover FragmentIdentifier + removal of dead code
* Initial packet router for gateway client
* Kill client if it fails to send to gateway too many times
* Cover messages with acks
* Moved out gateway client errors
* Ignoring cover traffic acks
* Changes in ack control
* Another sphinx version upgrade
* websocket handler delegating message chunking
* Using config defined ack wait additions
* Other minor changes I should have been more dilligent with splitting
* Import path fix
* sphinx_receiver => mixnet_receiver
* Missing renamed variable instance
* Updated aes-ctr to 0.4.0
* Removed concept of 'unfragmented' single fragment
* Replay fragments detection
* Long method split
* typo
* Cleaner client init
* Fixed race condition
* Fixed similar issue for retransmission
* Cargo fmt
* Minor clenaup
* validator: fixing a warning, untestify this when you need it for real code
* webassembly: minor readme changes.
* README changes in wasm
* Updated wasm version
* clients/webassembly: security vuln updates
* typo fix
* WIP commit
* Significantly simplified the API
* Changed switch to have default branch
* Managed to get rid of `this` bind
* Filled in a missing word
Co-authored-by: jstuczyn <jedrzej.stuczynski@gmail.com>
* Moved directory_server from Debug section of configs
* Using correct variable path
* Updated start_local_network script
* Actually killing gateways on startup
* Removed redundant stop_local_network.sh
* The Canadian appeasement accord
* Some clippy and compiler warning fixes
* Removed healthchecker from the client
* Cargo fmt issue after 100 explicit saves.........
* Changes accidentally removed in previous PR
* Initial draft for ClientsHandler
* Created listener struct
* typo
* Stateful websocket connection handler
* Exposing modules
* Depdendencies updates
* Moved listener to correct file + made start consume listener
* Main starting new listener
* Catching sigint
* Copied client storage from provider into gateway
* Exposed websocket listener type for nicer import path
* Defined websocket message receiver concrete type
* Client ledger struct without implementation
* ClientsHandler using more concrete types
* Mixnet sender + receiver and exposed listener type
* Handling mix packets
* Ability to forward mix packets
* "starting" both listeners at main
* Depedencies updates
* Initial type definitions for client messages
* Initial "gateway-requests" with AuthToken
* ibid.
* Restored most of ledger's functionalities
* Ability to retrieve all messages regardless of rate limit
* ClientsHandler request handling logic
* Required 'new' dependencies
* Main changes required for compilation
* PacketProcessor getting private key pointer
* "moved" types into gateway requests crate
* Moved and renamed types
* ibid.
* Added required serde_json dependency
* Skeleton for websocket request handling
* helper methods on ServerResponse
* WebSocket Handler pushing received mix messages directly to client
* PacketForwarder returning JoinHandle alongside the channel
* ClientsHandler following the same pattern
* Made websocket listener start method consistent with mix listener
* Syntax error + formatting
* Websocket handler having access to mix forwarder
* Minimal binary request parsing
* Implicitly derived std::error::Error on GatewayRequestsError
* Handling of all websocket requests
* Types import cleanup
* Updated placeholder fields
* Everything put into main
* Missing license notices
* Cleaned up unused code
* Copied and did initial minor changes to commands and config
* It's actually gateway
* Gateway sending its regular presence to directory server
* Re-organisation of gateway code + Gateway struct
* Updated provider argument description
* Restored duplicate ip check without importing NymTopology trait
* Moved hardcoded values into config
* Cargo fmt
* Compilation errors in other crates due to topology adjustments
* Test fixes
* Initial gateway-client
* Seemingly working version with bunch of hardcoded and temporary values
* cargo fmt
* Removed provider poller
* Updated config with gateway values instead of provider
* Gateway address including ws
* Removed hardcoded gateway address
* Properly skipping loop cover messages
* Updated log filter with tokio tungstenite related modules
* Updated sphinx version used
* Very minor cleanup
* unused import
* Moved `nym-sphinx-wasm` into `wasm` folder and renamed its examples
* A proposal for some structural cleanup
* desktop client: beginning of a Rust example for chunking.
* Simplifying desktop client readme
* Tarting up webassembly README
* A more visual webassembly client example
* clients/webassembly: grouping a few things into named functions for clarity
* clients/webassembly: put URLs at top of file, prepping for drop-down action
* mixnode + provider run: changed startup error messages a bit
* clients/webassembly: scrolling from the bottom in the demo
* validator: adding Diesel ORM
* validator: making sure Iron::status is always avaialable
* ibid
* validator: presence-announcement REST API
* validator: adding Diesel setup
* Removing Diesel stuff from root of monorepo
* validator: adding Diesel migrations and setup
* validator: documenting how PresenceAnnouncement is different from presence.
* validator: added Chrono crate for datetime conversions into sql
* validator: restructured the presence module
* validator: removed presence announcements from persistence
* validator: commenting topology
* Adding staking to the mixmining service
* Start of mixmining + stake service
* validator: added a bit about mixmining to README
* validator: added Iron's params crate
* validator: reorganized mixmining service and db code
* validator: no need for this .env warning
* validator: removing params parser, it's now unused
* validator: adding json body parser library for Iron
* validator: adding spelling exceptions
* validator: adding bodyparser deps
* validator: ability to (de)serialize Mixnode struct
* validator: further announcement HTTP progress
* validator: simplified announcement route
* validator: injecting database and service into handler
* validator: renaming service and db variables
* validator: using camelCase json
* validator: using base Iron handler rather than middleware handler
* validator: better error message on unexpected json parsing
* validator: adding 'location' to presence::Announcement
* comments on mixmining::Db
* validator: commenting out unused mixmining::Service methods for the moment
* validator: noting that we don't yet know how to measure capacity
* validator: comments
* validator: starting to add correct serializers in rest API
* validator: renaming a mixnode announcements
* validator: extracted route creation
* validator: going lower-case for node in "Mixnode"
* validator: removing the "announcement" model
* validator: renamed annoucements handlers
* validator: temporarily removed Chrono, remove it fully if it's not needed.
* validator: added all the needed Mixnode fields to the service model
* validator: moved models into their own file.
* validator: conversions to/from api vs service models
* validator: doing type conversions from rest to service models
* validator: unused import cleanup
* validator: rewrote mixmining service comments in light of recent thinking
* validator: some notes on type conversion tests
* wip
* validator: getting capacity from db works
* wip
* validator: eliminating borrows so we can have something pure to mutex out on
* validator: a working mutex on the mixmining service
* validator: renaming mixmining db get_capacity to capacity
* validator: making mixmining db capacity field private, using accessor
* validator: local capacity updates working
* validator: starting REST API for staking
* validator: fixing clippy warning
* validator: minor naming fixes on mixmining service
* validator: service mixnode and rest mixnode + topology conversions + tests
* validator: renaming mix_nodes to mixnodes for consistency
* validator: test fixtures for mixnode
* validator: moved service models into their own file
* validator: a properly-structured toplogy route
* validator: topology retrieval
* validator: killed test fixture warning
* validator: getting set for topology equality checks (testing purposes)
* validator: otherway conversions for topology and mixnode types
* validator: initial topology retrieval working
* validator: ditching go-ish variable name :)
* ibid
* validator: added a StakeUpdate struct to get around cargo fmt failing
* validator: commenting out struct so kill warning
* Ignoring validator vscode settings
* ibid
* ibid
* Added timeout values to configs
* Fixed possible crash when using delay larger than 2 years
* Connection timeout with hardcoded value
* Using provided timeout value
* tcp client requiring timeout value at construction
* Client using updated tcp client
* Mixnode using updated tcp client
* Healthchecker having separate timeout + new client config field
* Updated validator with connection timeout field
* Added connection_timeout to validator config template
* configs no longer need to have all debug fields set
* Removed debug section from config template of mixnode, provider and validator
* Significantly reduced debug section in client config template