* fixed pagination for querying for validators
* wip: decoupling block signing from ticketbook issuance
* added ecash contract query for latest deposit
* parking the branch: wrappers for merkle tree for issued ticketbooks
* make nym-api store merkle trees of issued ticketbooks
* nym-api route for returning all deposits alongside merkle root
* return index alongside deposit id
* persisting merkle index alongside issued ticketbook details
* wip
* responses for issued deposit challenges
* nym-api cleanup
* verification of issued partial ticketbooks
* cleanup of rewarder code
* make the rest of codebase compile
* updated config file
* improved logging
* fixed division by zero if there were no ticketbooks issued in a day
* using correct budget when rewarding operators
* fixed routes for issued data
* fixed ecash test fixture
* fixed incorrect deserialisation of expiration_date param
* additional bugfixes for ticketbook issuance
* more fixes and updated tests
* fixed formatting after rebasing
* updated schema
* fixed edge case unit test
* added config-score related parameters to the mixnet contract
* weaved in described_cache into NodeStatusCacheRefresher
* adding config score annotation
* using new updated performance for updating rewarded set
* using new values for rewarding
* clippy
* updated contract schema
* wallet fixes
* fixed wasm build
* add stats_reporting_config in config and env var
* fix serializazion issue
* remove duplicate stats reporting config
* cargo toml cleanup
* more cleanup
* draft of wasm sdk for stats reporting
* fix wasm sdk?
* again
* make stats sending possible from outside the sdk
* make sure stats_id from client and gateway reported ared different
* draft of client data collection
* refactor gateway stats collection to fit client stats collection in same common crate
* moved client stats event and reporter to common crate
* basic os reporting
* add stats reporting address in sdk
* integrate stats scaffolding changes
* remove tokio spawn to potentially accomodate wasm32
* fmt
* fix typo
* add client_stats_id
* unify stats reporting
* avoid shutdown handle drop
* add client_type to stats reporting
* better way to build statsReportingconfig
* disarm shutdown on sink
* remove sink reporter and env dev-dependency
* cherrypick from jon/send-packet-stats
* uncoditionally start controller + licensing
* improve ClientStatsReport serialization
* better time handling
* reintroduce proper local reporting
* Let task wait for shutdown when exiting
* Log tweak
---------
Co-authored-by: jmwample <jmwample@users.noreply.github.com>
Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com>
* Add ipv6 in configs
* Make v4 latest
* Fix linux
* IPv6 prefix in config
* Fix template of private ip
* Fix clippy
* Fix v6 cidr
* Move from 2001:db8::/32 to fc00::/7 addresses
* Fix version number on conversion
* feat: add functionality to specify a git_ref for gateway probe when building node status agent
* remove mac specifics
* fix: remove unused part of code, add gateway probe git ref to tag name
* fix: add cleaning gateway probe git ref
* fix: incorrect bash
* fix: incorrect output name
* workflow fix
* add new redirect
* add new redirect fix
* add new redirect fix
* try remove prepend from redirects
* more tweaks config redirects
* new tweaks
* move root redirect to bottom
* tweak
* tweak
* test the difference in config
* correct all redirects based on testing - ready to review
* adding one more redirect
---------
Co-authored-by: import this <97586125+serinko@users.noreply.github.com>
* started todo list for rework
* startd long todo list
* startd long todo list
* remove ts docs from ts sdk dir
* started new docs draft
* rearranged code example dir structure
* modified code component filepaths
* first pass rust sdk
* small shift typescript org
* updated todo list
* consolidating images folders in one place
* first pass @ operator docs
* gen updates
* sdk in its own dir
* first pass developers structure
* first pass network structure
* structure
* add licensing
* moved old docs -> old_docs dir for clarity when devving
* moving around new docs - think this is the final dir structure
* updated todo list
* new autodoc version (#4781)
* Update rework_todo.md
* quick first sketch of landing page
* rework of structure of developers
* added arch and concepts stubs
* add new bits to todo list
* new list
* tweak to overview
* mixnet node overview
* tweak overview
* first pass new arch
* first pass concepts
* first pass traffic
* more network docs
* moved some chain files to the dev portal stubs
* removed old reference to archive
* note to client
* concepts 2nd pass
* crypto first proper pass, sphinx
* stub for not p2p
* structure change
* traffic 2nd pass
* misc
* hid root index
* overhaul arch
* overhaul arch
* add links + tweaks
* update todo list
* updating nyx section
* added zknym docs
* added zknym docs
* note on where to find deployed info
* smart contracts done
* started moving integrations docs over from ts sdk
* pass @ integration page
* todo for the tldr overview
* added ffi stub files
* updated todo list
* move sdks to developers
* initial pass at new clients overview for developers
* rework intro
* add echo serv to tools
* sidebar autocollapse
* integration overview work + tools
* concepts overview for devporta
* stub
* more for networking pages
* added to concepts in dev portal
* updated arch
* crypto overview page
* typo fix
* add credential stub
* first pass concepts done
* start reorg of rust sdk docs
* reorg + added FFI table
* added no scroll to inline code
* finished ffi overview page
* first pass @ rest of rust sdk doc
* first pass ffi
* tweaks
* added testnet example + note to custom topology example overview
* stripped unnecessary stuff from TS
* tweaks to ffi
* updated faq
* first pass tcpproxy
* commit before moving image dir
* moved images/ to correct place
* started on client redo
* chain first pass
* moved cli wallet out of tools
* first pass new ws client
* new chain info, left todo links in
* links
* more links
* chain registry
* added echo server to tools
* rust sdk links
* ts sdk links
* final linkchecks
* redo acks diagram as mermaid
* add mermaid flow diagram
* added links for codecs + full flow diagram
* removed todo
* remove forced dark mode
* diagram + concepts overview
* small correction re tcpproxy ffi
* remove diagram title
* new sock5 diagram, minor client docs tweaks
* diagrams
* change order in list
* added note for standalone: can be accessed via sdk
* tweaks
* replaced old diagram with mermaid
* fixed link
* hardcoded import version for the moment
* update deps
* remove test component
* recreated tools dir
* remove tools dir moved to wrong palce
* prebuild and predev script for autodoc commands
* make script own command instead of prebuild
* made code blocks sh
* updated autogenerated docs
* temp
* auto commit generated command files
* add link to autodoc generated files
* updated autodoc for committing changing else exit
* auto commit generated command files
* updated readme
* make subcommand headers smaller
* removed mdbook related scripts
* update readme
* update readme
* removed backups of root meta.json
* cherry pick yana commits + some extra config in theme
* update readme
* update theme: width of page and padding
* some more themeing
* changed erroneous note
* docs redirects first pass
* tweaking
* new pages + rest of redirects for old docs/
* brought in archive + done rewrites for devportal
* cherry pick yana landingpage
* tweaked landing page component
* changed theme of mermaid diagram to match everything else
* updated todo list
* [DOCs]: Operators rework to next.js (#4930)
* initialise operators guides v2
* new introduction page
* add variables csv and page
* add baseurl to allow short path
* add sandbox page
* added building from source page
* add binary pages
* add preliminary steps
* clean preliminary steps dir
* syntax edit
* syntax edit
* add configuration page
* create new proxy configuration page
* create new proxy configuration page
* create bonding.mdx page
* correct images path
* syntax edit
* add new validator setup page
* add api setup page
* add nyx configuration page
* add nym node and maintenance pages
* finish maintenance and add nymvisor conf page
* add manual upgrade page
* add nymvisor upgrade page
* add performance testing page and dir
* add node api check page
* add explore nym scripts page
* add testing pages
* fix menu issue by moving snippets to coomponents
* add all troubleshooting pages
* add general faq page
* add nym node faq page
* add nyx faq page
* revamp legal forum to community counsel and add all pages
* rewire relative paths to new structure
* simplify setup and remove lock file
* syntax fix
* rm package.json
* re add package.json, rm package-lock.json
* removed old books from commit
* address review comments
---------
Co-authored-by: mfahampshire <maxhampshire@pm.me>
Co-authored-by: mx <33262279+mfahampshire@users.noreply.github.com>
* tweak client links
* also moved matrix images to correct place
* Max/fix links new docs framework (#4989)
* tweak client links
* standardise images in public/
* old images move to public/archive
* rename overview to more descriptive
* links (#4990)
* links
* removed todos
* updated todo list
* minor themeing
* operator redirects
* pick yana's edits: remove specified callout theming
* added todo comments for old ts sdk redirects
* [new/docs/operators]: Create archive section - PR ready to merge (#5004)
* [new-docs/operators] : Fix callout syntax (#5006)
* fix callout syntax from color to type
* correct callout from danger to warning
* update footer
* updated footer
* finalised rewrites
* tweaks to clients and reintroduced old examples page
* update todo
* Max/individual command autodocs (#5015)
* auto commit generated command files
* added to autodoc.sh: build all binaries before running
* autodoc move individual command outputs to components
* Max/individual command autodocs (#5018)
* updated autodoc script
* updated autodoc script for fix + reintroduced gitignore file for generated markdown
* auto commit generated command files
* auto commit generated command files
* added command-outputs to autodoc script
* fix merge conflicts
* repush components
* remove old docs dirs
* auto commit generated command files
* auto commit generated command files
* updated messages paradigm with the standalone proxies
* [NEW-DOCs/operators]: Command output, accordion, api scraping & all final tasks (#5026)
* add custom scripts, create prebuild to import data to pages
* update after latest prebuild
* auto commit generated command files
* add accordion component
* add changbelog page
* add node_api_check outputs
* finish all command outputs
* more accordions beautifications
* finish accordion
* PR ready to go
* address review comments
---------
Co-authored-by: mfahampshire <maxhampshire@pm.me>
* Adjust padding
* Fix responsive design
* cherry pick yana landingpage flex update
* reremove old docs
* added dependencies to readme
* pushing build attempt changes
* fix merge errors, path errors, dump uselss dinosaurs - BUILT THE F*N DOCS w success
* moved prebuild to its own script
* generate timenow
* auto commit generated command files
* remove comment
* auto commit generated command files
* auto commit generated command files
* auto commit generated command files
* build from new configs
* add mdx type as explicit dep
* remove rc from version in package
* change predev script
* update readme with scripts
* update general info
* add license
* auto commit generated command files
* add updated components
* removed old examples page for the moment
* remove old list will reintroduce hidden behind gitignore for future
* reintroduce todo list behind gitignore
* added standalone tcpproxy binary info
* nothing change for redeploy test
* make build standalone
* updated readme
* working on new cd
* remove export
* updated ci/cd for docs
* added ci script for dist
* hide text on laptop wide screen
* add pnpm to ci/cd
* add pnpm version to ci/cd
* add default dir to ci/cd
* change path to script
* update projct name ci
* lint ci branch ignore
* add basePath to next.config.js
* update doc rewrites
* revert basePath addition
* update basePath
* add mobile styles
* fix responsive style
* remove old ts sdk docs workflow
* temp remove autodoc from workspace
* update sidebar for clarity: crypto = cryptography
* ignore documentation in pr-validation workflow
---------
Co-authored-by: Yana <yanok87@users.noreply.github.com>
Co-authored-by: import this <97586125+serinko@users.noreply.github.com>
Co-authored-by: fmtabbara <fmtabbara@hotmail.co.uk>
* bugfix/feature: added NymApiClient method to get all skimmed nodes
* wasm
* helper: utility method for getting ed25519 identity directly from node description
* Compile & copy wg probe
* Node status agent WIP
* Enable debug logging
* Agent submits results
- add clap to agent
- agent runs network probe
- /submit endpoint on NS API
* Build clients with timeouts
* Update logging and dev scripts
* Replace /blaclisted endpoint
* Testruns fully functional
- task that queues testruns periodically
- testruns read/write in DB
* Probe scores fully working
- testruns are assigned on API
- submit updates testruns correctly on NS API side
- agent registers with API
- agent submits results correctly
* Clippy fixes
* PR feedback
* Clippy again
* PR feedback
* Run clippy earlier in CI
* Make refresh delay configurable in server & agent
* feat: add dockerfile and env variables
* Added workflow for pushing node status api on harbor
* Misc changes to pathing and using yq instead of jq
* fix: change the way we read env vars for nyxd, nym api and explorer
* fix: docker build workflow
* Remove config in favor of clap args
* Added naming and tags
* change from value to result
---------
Co-authored-by: Lawrence Stalder <lawrence@nymtech.net>
Co-authored-by: dynco-nym <173912580+dynco-nym@users.noreply.github.com>
Rebase + point to earlier network client code
Adjust to new Nym API types
Refer to earlier client code
Revert "Rebase + point to earlier network client code"
This reverts commit dd75e7dc0695c25b0883e2f5dd15b7d70165e9e8.
Point to earlier commit
* Setup new package
* Setup DB
* Fetch & store mixnodes/GWs
- refactor db package structure
- finally solve DATABASE_URL: absolute path works best
* Additional query functionality
- missing only daily summary, which requires type refactoring
* Replace type alias tuples with structs
* Insert summary
* Add github job to build package
* Build script for sqlx
* Remove data dir
- useless now that sqlx DB sits in OUT_DIR
* PR feedback
* add stats storage to gateways
* config fix
* add stats storage model and logic
* adapt stats collection to new storage
* stats cleanup on start
* change to linux only code
* tweaks
* modified stats cleanup + change session started
* change wrong table name
* store crashed session as 0 duration
* adapt for sqlx 0.7
* remove unused dependencies
* revert changes from gateway config, as it is broken anyway
* copyright and misc stuff
---------
Co-authored-by: Simon Wicky <simon@linode2-2.net>
* added explicit SP suffix to started tasks
* added 'GatewayTopologyProvider' that always injects itself into the network
* use the new topology provider to bypass described bootstrapping problem
* fix: added needed env vars to dockerfile, updated db env for a bit
* feat: add github workflow for pushing data observatory
* feat: split the postgresql connection string into multiple variables
* fix docker compose
* fix workflow
* fix: short in clap
* Added new legacy variant of HostInformation
* fixed 'option_bs58_x25519_pubkey' for empty string
* 'Debug' impl for x25519 and ed25519 to use human-readable representation
* HttpClient to use explicit 'serde_json' conversion for better errors
* additional 'Debug' derives
* bugfix: introduce 'LegacyPendingMixNodeChanges' that does not contain 'cost_params_change'
* updated schema files due to removal of '#[serde(deny_unknown_fields)]'
* add session type based on ecash ticket collection
* avoid setting session type if already set
* change duration type to duration
* add a cap for finished sessions
* add stats model
* add stats collection
* add stats route
* propagate stuff and run stuff
* cargo stuff
* sqlx unused what?
* add sessions started stat
* session durations in miliseconds
* apply Jon's comments
* [Product Data] Second step in gateway usage data collection (#4964)
* turn stats collection into event based
* move events into a common crate for future use elsewhere
* apply Jon's comments
WIP; rebasing
Another branch squash
Squashing the v3 branch
changing min pledge amounts
logic for adding new nymnode into the contract
converting mixnode/gateway bonding into nym-node bonding
logic for migrating gateways into nymnodes
ibid for mixnodes
further nym-node work + fixed most existing unit tests
forbid nymnode migration with pending cost params changes
preassign nodeid for gateways
changing role assignment and epoch progression
changing role assignment and epoch progression
optional custom http port
logic for unbonding a nym-node
updating Delegation struct
logic for increasing pledge of either mixnode or nymnode
logic for decreasing pledge of either mixnode or a nym node
logic for changing cost params of either mixnode or a nym node
wip
initialise nymnodes storage
fixing transaction tests
fixed naive family tests
reward-compatibility related works
resolving delegation events
introduced rewarded set metadata
another iteration of restoring old tests
updated rewarding part of nym-api
parking the branch
unparking the branch
wip
purged families
added 'ExitGateway' role
passing explicit work factor for rewarding function
remove legacy layers storage
wip: node description queries
added announced ports to self-described api
step1 in gruelling journey of adding node_id to gateways
ensure epoch work never goes above 1.0
changed active set to contain role distribution
[theoretically] sending rewarding messages for the new rewarded set
[theoretically] assigning new rewarded set
reimplementing more nym-api features
remove legacy types
re-implement legacy network monitor
restoring further routes + minor refactor of NodeStatusCache
skimmed routes now return legacy nodes alongside nym-nodes
seemingly restored all functionalities in nym-api
removing more legacy things from the contract
initial contract cleanup
added nym-api endpoints to return generic annotations regardless of type
updated simulator to use new rewarding parameters
more contract cleanup
made existing mixnet contract tests compile
extra validation of nym-node bonding parameters
fixed additional compilation issues
fixed nym-api v3 database migration failure
added additional nym-node contract queries
updated the schema
made additional delegation/rewards queries compatible with both legacy mixnodes and nym-nodes
fixing existing unit tests in mixnet contract
wip
resolved first batch of 500 compiler errors
re-deprecating routes
making wallet's rust backend compile
fixed non-determinism in contract + nym-api build
fixes to the build
populating cotracts-cache with nym-nodes data
more missing nymnodes queries
temp mixnet contract methods + restored result submission in nym-api
allow deprecated routes
submitting correct results for mixnode results
removed deprecated re-export of AxumAppState and removed smurf naming
moved axum modules into support::http
cleaning up nym-api warnings
determine entry gateways before exits
exposed transaction to update nym-node config
missing memo for updating node config
new routes
added routes to swagger and fixed relative paths
fixed some macro derivations
added nym-node commands to nym-cli
* Switch over the last set of jobs to arc runners
* Use dind runners
* Disable matrix notification so we can use non-dind runners
* wip
* Add workflow_dispatch
* Revert "wip"
This reverts commit ae34efd32e.
the previous value of 2h was way too big. especially since it was quite likely for multiple failures to occur hourly during increased validator load when mixnet epoch was getting transitioned
* Data Observatory stub
* Fix sqlx in CI
* Add troubleshooting tips for sqlx
* Update CI paths to trigger for this package
* Add this to CI upload binary build
* add TcpProxyClient and TcpProxyServer abstractions to SDK
* add single connection example
* add multi-connection example
* add simple echo server to `tools/`: used for multi-connection example
* update FFI toml files: switched to local imports
* add proxy bindings to `ffi/shared`
* add proxy bindings and example to `ffi/go`
* add note to `ffi/cpp` about lack of Proxy bindings for the moment
* 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
* 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
* add icmp and dns configuration command
* add parameters and vars table and make explicit steps
* add features to changelog
* add operators updates & tasks to changelog
* syntax edits
* Switch ci-build to arc-ubuntu-20.04
* Trigger on wf file chanes
* Add IPR and authenticator to default workspace
* Move over a few more
* and more
* Revert two builds that require docker
* typo in label
* Revert two more
* Fix go
* update
* update
* Create nym-repo-setup
* update
* Add postrm
* Add README
* Add Makefile
* Move to subdir
* Bundle the list file instead
* Create nym-vpn metapackage
* Rename top-level dir
* Set version of meta package to 0.1
* Add dpkg-name
* Create workflow for creating the debs
* Restrict to amd64 only
* Rename to build-deb-meta.yml
* name to upload-artifact
* Set names
* typo
* Extend version and set amd64 only
* Bump to 1.0.1
* 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
* 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>
* 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
* Store wireguard peers in db
* Add update to nym-node
* Move gateway-requests and gateway-storage to common
* Carry storage to PeerController field
* Double kernel modifications with storage ones
* Take storage peers at boot
* Link storage query for registration flow
* Move authenticator peer comms in peer manager
* Modify template too
* Remove unused
* Fix clippy
* Fix clippy non-linux
* Keep storage data up-to-date on every check
* Check for staleness in storage timestamps
* Remove potential for panic in unwrap
* Fix clippy
* Fmt
* Clippy after rebase
* Remove in memory test structure
* nym-crypto: use rand_core traits from rand crate instead of cipher
Make rand feature also use the rand_core traits from the rand crate to
fix compilation of nym-bandwidth-controller
* Add features to bip32 in nym-ledger crate
* Delete unused empty crate
* Add clag feature to socks5-client
* Add feature flags to authenticator
* Add clap feature to network-requester
* Handle rebase changes
add offline ecash library
minor changes in coconut benchmarks
add ecash smart contract
change contract traits from coconut to ecash
first wave of andrew's suggestion
first wave of andrew's suggestion
second wave of andrew's suggestion for ecash lib
andrew's suggestion for ecash contract
licensing commit
safety comments for most unwraps
more unwrap handling
change chrono crate for time
latest cargo lock
error revamp
small visibility fix
small fix
remove indexedmap from contract + some tweaks
add cw2 version in ecash contract
remove envryption key from contract
change types from coconut to ecash types
adapt api model for credential issuance
adapt issued credential storage on API
add signatures cache on API
change API routes for new blind signing
modify issued_credential table
add issuance logic client-side
credential and signature storage client side
utils for credential issuance
first wave of fix
some of andrew's suggestions
remove encryption key from deposit
freepass issuance client side
freepass issuance API side
andrew's suggested fixes
other suggested fix
adapt change from PR below
allow offline verification flag
credential spending models
credential spending models for client
credential preperation for the client
credential preperation for the client
credential storage for spending on client
bloom filter for API
spent credential storage on validators
API route for spending online and offline ecash
API routes in the client lib
credential storage on gateway
ecash verifier to replace coconut verifier
accept credentials on gateway
bandwidth expiration for gateways
client ask for more bandwidth if it runs out
credential import
adapt nym validator rewarder and sdk
fix tests api tests and add constants
cargo fmt and lock and small test fix
cargo fmt and lock and small test fix
cargo lock
move stuff where they belong in ecash and static parameters
move some constants, error handling and phase out time crate
error revamp part 2
secret key by ref instead of clone
change l in wallet and v visibility
rework payinfo
rework monster tuples
fix expiration date signature cloning
minor fixes
final bits and bobs fixes
final bits and bobs fixes
rename l accessor to tickets_spent
wave of fixes
second wave of fixes
change hash domain value
removed benchmark flag
remove useless stringification in storage
nuke Bandwidth voucher
change timestamps to offsetdatetime
key name change
post-rebase fixes
update nym-connect 'time' dep due to broken semver
upload ecash contract to the build server
make wasm zknym-lib compile
but it won't work properly just yet
make wasm zknym-lib compile
but it won't work properly just yet
fix typo in ecash contract deps
make sure to use 0.1.0 sphinx packet
optimise pairings in 'check_vk_pairing'
derive serde for ecash types
simplified g1 tuple byte conversion
further optimise the pairing
unified signature type + renamed nym-api coconut module to ecash
using bincode serialiser for more complex binary types
using multimiller loop instead of rayon for verifying coin indices signatures
batching signature verification wherever possible
feature-locked rayon
clippy
refactor ecash contract a bit + introduce deposit storage
reworked find_proposal_id
various minor fixed
add offline_zk_nyms to nym-node everywhere
add missing #query
change test value to fit new serialization
optimised deposits storage
removed duplicate decompression code
using deposit_id instead of transaction hash
removed freepasses
split up ecash handling
unified shared state
fixed deposit_id parsing
log recovered deposit id
removed online verification
add detailed build info to ecash contract
fixed deserialisation of deposit amount received from nyxd queries
changed deposit to only persist attached pubkey
first iteration of split of verification and redemption
basic tool for setting up new network
expanded the tool with the option to bypass DKG
rename + init network without DKG
setting up locally running apis
ecash key migration
more local functionalities
wip fixing sql schemas
gateway immediately submitting redemption proposal
and getting it passed if valid
most of the gateway logic for split redemption with error recovery
fixed gateway not persisting ecash signers
simplify creation of compatible client
create properly serialised ecash key from the beginning
rebuild missing tickets and proposals on startup
stop ticket issuance during DKG transition
fixing build issues
split out ecash storage on nym-api side
master-verification-key route
caching all the signatures and keys
implemented aggregated routes for nym-apis
swagger UI for ecash endpoints
added explicit annotation for index and expiration signatures
revamped client ticketbook storage
save all recovery information in the same underlying storage
wrapper for bloomfilter
being more aggressive with marking tickets as used
ensure client has correct signatures before making deposit
fix deserialisation of AggregatedExpirationDateSignatureResponse + add ticketbook table
split nym-api ecash routes handlers into multiple files
fixed deserialisation of encoded expiration date
add tt_gamma1 to challenge and change naming for paper consistency
rotating double spending bloomfilter
nym-api test fixes + make sure to insert initial BF params
fixed ecash benchmark code
updated contract schema
updated CI to not upload gateway/mixnode binaries
ticket bandwidth revocation
added default deserialisation for zk nym config
post-rebase fixes
* Fix tokio error in 1.39
Fix the error generated by tokio 1.39
72 | / tokio::select! {
173 | | daemon_res = &mut fused_runner => {
174 | | warn!("the daemon has terminated by itself - was it a short lived command?");
175 | | let exit_status = daemon_res?;
... |
179 | | event = &mut self.upgrade_plan_watcher.next() => {
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
... |
201 | | }
202 | | }
| | -
| | |
| |_____________temporary value is freed at the end of this statement
| borrow later used here
and
62 | / select! {
63 | | connection_message = &mut mix_receiver.next() => {
| | ^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
64 | | if let Some(connection_message) = connection_message {
65 | | if deal_with_message(connection_message, &mut writer, &local_destination_address, &remote_source_address, connection_id).await {
... |
86 | | }
87 | | }
| | -
| | |
| |_________temporary value is freed at the end of this statement
| borrow later used here
* Upgrade to tokio 1.39.1
* Simpler attempt
* Revert fixes and instead bump to tokio 1.39.2
* update
* bump msrv for nym-node-tester-wasm
* Add signable_request function
* Export key type in function signature
* Cargo.lock
* Track client version and respond using it
* Internally use v7 and then down convert if needed
* Local response type
* Streamline
* Strong type for client version
* Remove commented out code
* rustfmt
* Ignore sign verification fail for v6
* Update vps-isp.md
Added an extra diagnostic step, which helped me to debug lack of routability.
* Update vps-isp.md
Implementing serinko's comments
* Update vps-isp.md
Changed possibly to possible and added how to find IPv6 Gateway.
* Update vps-isp.md
Fixed ifup/ifdown link
* Add check for 1GB/day/user and remove stale check
* Use saturated_sub
* Remove from wg peers
* Use 10 seconds instead of 1
* Query bandwidth message
* Ad client query message too
* Keep stale check
* Make bandwidth cap value public
* Fix consumed vs available bug
* Don't overwrite existing registrations
* Use self pub key instead of peer's
* Update isp-sheet.csv
Added a few known VPS providers which (a) support crypto payment (b) allow TOR in some shape or form (c) more or less know for their stability. Will add more eventually.
* Update isp-sheet.csv
added a few more providers
* minimised dropdown bar
* update ci scripts
* theme changes to dev portal
* theme changes to operators
* theme changes to docs
* theme -> themes
* fixed theme -> themes import in book
* removed bak files
* remove logging from post_process + remove search feature from mdbook
---------
Co-authored-by: mfahampshire <mfahampshire@pm.me>
* Make NR able to read config with old keys in
We removed stuff related to the old statistics service, so we ignore
unknown fields to be nice to our users
* Remove deleted config keys from NR template
* Create UserAgent that can be passed from the binary to the nym api client
* TryFrom for UserAgent to HeaderValue
* Add user agent for getting the list of gateways
* Fix wasm client
* Move clap behind feature flag in bin-common
* Implement conversion to UserAgent
* Set user_agent on base client in native and socks5 clients
* Set user agent in socks5-listener lib
* wip
* wip
* Deserialize cargo_triple to unknown by default
* Abbreviate git hash
* Remove unused import
* Add missing dep, and remove dbg statements
* Reorder string representation
* Remove commented out code
* Revert temporary log level change
* Remove nym-network-statistics from workspace
* Remove nym-network-statistics
* Cargo.lock
* Update ci workflow
* Remove code that refers to removed nym-network-statistics
* Remove more
* Remove nym-statistics-common
* Delete commented out modules
* Remove commented out code
* Remove more commented out code
* Remove more commented out stuff
* Remove unused function
* initialised node_api_check CLI
* add swagger data
* print all stats as dicts - first one needs a tweak
* gateways and mixnodes return all dictionaries
* finish basic functionality of returning all data as dicts - need moe functions
* add --no_routing_history and --markdown options
* add error message
* initialise version count command
* version count work - missing error checks
* separate swagger query - need tweak for old mixnodes
* implement output function
* finished - ready for review
* simplify swagger request
* simplify error log
* address review - ping swagger/error solved
* finished version for review
* finished and cleaned - ready for review
Cargo is warning about
warning: profile package spec `nym-wasm-sdk` in profile `release` did not match any packages
Fix this by commenting out the profile settings for that crate as it's
currently not included in the main workspace
On every cargo command we have the set warnings:
warning: /home/jon/src/nym/nym/common/dkg/Cargo.toml: `default-features` is ignored for bls12_381, since `default-features` was not specified for `workspace.dependencies.bls12_381`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/dkg/Cargo.toml: `default-features` is ignored for ff, since `default-features` was not specified for `workspace.dependencies.ff`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/dkg/Cargo.toml: `default-features` is ignored for group, since `default-features` was not specified for `workspace.dependencies.group`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/client-libs/validator-client/Cargo.toml: `default-features` is ignored for bip32, since `default-features` was not specified for `workspace.dependencies.bip32`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/client-libs/validator-client/Cargo.toml: `default-features` is ignored for prost, since `default-features` was not specified for `workspace.dependencies.prost`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/credentials-interface/Cargo.toml: `default-features` is ignored for bls12_381, since `default-features` was not specified for `workspace.dependencies.bls12_381`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/credentials/Cargo.toml: `default-features` is ignored for bls12_381, since `default-features` was not specified for `workspace.dependencies.bls12_381`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/nymcoconut/Cargo.toml: `default-features` is ignored for bls12_381, since `default-features` was not specified for `workspace.dependencies.bls12_381`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/nymcoconut/Cargo.toml: `default-features` is ignored for ff, since `default-features` was not specified for `workspace.dependencies.ff`, this could become a hard error in the future
warning: /home/jon/src/nym/nym/common/nymcoconut/Cargo.toml: `default-features` is ignored for group, since `default-features` was not specified for `workspace.dependencies.group`, this could become a hard error in the future
This commit adds default-features = false to the workspace dependencies
to fix these. An alternative way would be to remove
`default-features = false`
in the crates, but I assume these were put there for a good reason. Also
we might have other crates outside of the main workspace that depends on
these crates having default features disabled.
* Include wireguard in gw config
* Support nym node first
* Create wg keypair
* Activate wg feature in gw dep
* Move key paths to separate structure
* Use client reg
* Generate and use own private key
* Rename network to ip for wg gw
* Propagate wireguard setup error message
* Remove logs
* Bump gateway version number
* Remove upgrade code
* Init wireguard on migration
* Upgrade code for nym-node too
* Wireguard paths upgrade
* Init wg keys on upgrade
* Simplify pub key translatations
* Fix clippy
* Undo comment change
* Fix tests
* Don't bump version just yet
* Remove redundant source attr
* Remove unused wg details
* Rename wg device
* Init for mixnode migration as well
* Add upgrade for gw wireguard deleted field
* Move interface removal to Drop trait impl
* Fix clippy
* Wgapi could be included on other platforms
* Handle peer control msgs
* Send add peer msg
* Handle double registration
* Fix deadlock
* Fix clippy
* More clippy
* Use same defguard
* Fix unit test
* Fix wasm build
* Move implementations from types to wireguard crate
* Fix linux
* Include wireguard in gw config
* Support nym node first
* Create wg keypair
* Activate wg feature in gw dep
* Move key paths to separate structure
* Use client reg
* Generate and use own private key
* Rename network to ip for wg gw
* Propagate wireguard setup error message
* Remove logs
* Bump gateway version number
* Remove upgrade code
* Init wireguard on migration
* Upgrade code for nym-node too
* Wireguard paths upgrade
* Init wg keys on upgrade
* Simplify pub key translatations
* Fix clippy
* Undo comment change
* Fix tests
* Don't bump version just yet
* Remove redundant source attr
* Remove unused wg details
* Rename wg device
* Init for mixnode migration as well
* Add upgrade for gw wireguard deleted field
* Move interface removal to Drop trait impl
* Fix clippy
* Wgapi could be included on other platforms
* * added info on gateway habourmaster
* fixed broken examples with new infra addresses
* bump node version in ts sdk docs ci script
---------
Co-authored-by: mfahampshire <mfahampshire@pm.me>
* bootstrap next app + add overview page
* fix AssetList type
* fix up nav stuff
* Refactor Nav component and add network components pages
* Refactor WorldMap component and update TelegramIcon, GitHubIcon, NymVpnIcon, DiscordIcon, and TwitterIcon components
* add service providers page
* mixnodes page
* delegations page + use material react table for all tables
* nodes map page
* Refactor StyledLink component and remove unnecessary console.log statements
* Refactor ESLint configuration, remove unused dependencies, and update component imports
* update deps
* Refactor imports and update dependencies
* fix dark mode
* build single mixnode page
* build single gateway page
* Refactor handleOnDelegate function to use useCallback in mixnodes page.tsx
* Add defaults for constants
---------
Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com>
* retrieve ed25519 identities of issuers
* signature verification on issued credentials
* wip
* persisting information about verified deposits, any failures and foul plays
* clippy
#cosmrs = { git = "https://github.com/jstuczyn/cosmos-rust", branch = "nym-temp/all-validator-features" } # unfortuntely we need a fork by yours truly to get the staking support
tendermint="0.34"# same version as used by cosmrs
tendermint-rpc="0.34"# same version as used by cosmrs
prost="0.12"
# temporarily using a fork again (yay.) because we need staking and slashing support (which are already on main but not released)
# plus response message parsing (which is, as of the time of writing this message, waiting to get merged)
cosmrs={git="https://github.com/cosmos/cosmos-rust",rev="4b1332e6d8258ac845cef71589c8d362a669675a"}# unfortuntely we need a fork by yours truly to get the staking support
tendermint="0.37.0"# same version as used by cosmrs
tendermint-rpc="0.37.0"# same version as used by cosmrs
prost={version="0.12",default-features=false}
# wasm-related dependencies
gloo-utils="0.1.7"
js-sys="0.3.63"
serde-wasm-bindgen="0.5.0"
gloo-utils="0.2.0"
gloo-net="0.5.0"
# use a separate branch due to feature unification failures
# this is blocked until the upstream removes outdates `wasm_bindgen` feature usage
The platform is composed of multiple Rust crates. Top-level executable binary crates include:
* nym-mixnode - shuffles [Sphinx](https://github.com/nymtech/sphinx) packets together to provide privacy against network-level attackers.
* nym-client - an executable which you can build into your own applications. Use it for interacting with Nym nodes.
* nym-socks5-client - a Socks5 proxy you can run on your machine and use with existing applications.
* nym-gateway - acts sort of like a mailbox for mixnet messages, which removes the need for direct delivery to potentially offline or firewalled devices.
* nym-network-monitor - sends packets through the full system to check that they are working as expected, and stores node uptime histories as the basis of a rewards system ("mixmining" or "proof-of-mixing").
* nym-explorer - a (projected) block explorer and (existing) mixnet viewer.
* nym-wallet - a desktop wallet implemented using the [Tauri](https://tauri.studio/en/docs/about/intro) framework.
*`nym-node` - a tool for running a node within the Nym network. Nym Nodes containing functionality such as `mixnode`, `entry-gateway` and `exit-gateway` are fundamental components of Nym Mixnet architecture. Nym Nodes are ran by decentralised node operators. Read more about `nym-node` in [Operators Guide documentation](https://nymtech.net/operators/nodes/nym-node.html). Network functionality of `nym-node` (labeled with `--mode` flag) can be:
-`mixnode` - shuffles [Sphinx](https://github.com/nymtech/sphinx) packets together to provide privacy against network-level attackers.
-`gateway` - acts sort of like a mailbox for mixnet messages, which removes the need for direct delivery to potentially offline or firewalled devices. Gateways can be further categorized as `entry-gateway` and `exit-gateway`. The latter has an extra embedded IP packet router and Network requester to route data to the internet.
*`nym-client` - an executable which you can build into your own applications. Use it for interacting with Nym nodes.
*`nym-socks5-client` - a Socks5 proxy you can run on your machine and use with existing applications.
*`nym-explorer` - a (projected) block explorer and (existing) mixnet viewer.
*`nym-wallet` - a desktop wallet implemented using the [Tauri](https://tauri.studio/en/docs/about/intro) framework.
<!-- coming soon
*`nym-network-monitor` - sends packets through the full system to check that they are working as expected, and stores node uptime histories as the basis of a rewards system ("mixmining" or "proof-of-mixing").
Platform build instructions are available on [our docs site](https://nymtech.net/docs/binaries/pre-built-binaries.html).
Wallet build instructions are also available on [our docs site](https://nymtech.net/docs/wallet/desktop-wallet.html).
*Platform build instructions are available on Nym [Operators Guide documentation](https://nymtech.net/operators/binaries/building-nym.html).
*Wallet build instructions are available on Nym [Technical docs](https://nymtech.net/docs/wallet/desktop-wallet.html).
### Developing
There's a `.env.sample-dev` file provided which you can rename to `.env` if you want convenient logging, backtrace, or other environment variables pre-set. The `.env` file is ignored so you don't need to worry about checking it in.
There's a [`sandbox.env`](https://github.com/nymtech/nym/envs/sandbox.env) file provided which you can rename to `.env` if you want convenient testing environment. Read more about sandbox environment in our [Operators Guide page](https://nymtech.net/operators/sandbox.html).
For Typescript components, please see [ts-packages](./ts-packages).
> We used to use Keybase for developer chats, but we have since migrated to Matrix and Discord. We no longer check the old **nymtech.friends** Keybase team.
You can chat to us in two places:
* The #dev channel on [Matrix](https://matrix.to/#/#dev:nymtech.chat)
* The various developer channels on [Discord](https://discord.gg/nym)
* The various developer channels on [Discord](https://nymtech.net/go/discord)
### Rewards
### Tokenomics & Rewards
Node, node operator and delegator rewards are determined according to the principles laid out in the section 6 of [Nym Whitepaper](https://nymtech.net/nym-whitepaper.pdf). Below is a TLDR of the variables and formulas involved in calculating the epoch rewards. Initial reward pool is set to 250 million Nym, making the circulating supply 750 million Nym.
|Symbol|Definition|
|---|---|
|<img src="https://render.githubusercontent.com/render/math?math=R#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}R#gh-dark-mode-only">|global share of rewards available, starts at 2% of the reward pool.
|<img src="https://render.githubusercontent.com/render/math?math=R_{i}#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}R_{i}#gh-dark-mode-only">|node reward for mixnode `i`.
|<img src="https://render.githubusercontent.com/render/math?math=\sigma_{i}#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}\sigma_{i}#gh-dark-mode-only">|ratio of total node stake (node bond + all delegations) to the token circulating supply.
|<img src="https://render.githubusercontent.com/render/math?math=\lambda_{i}#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}\lambda_{i}#gh-dark-mode-only">|ratio of stake operator has pledged to their node to the token circulating supply.
|<img src="https://render.githubusercontent.com/render/math?math=\omega_{i}#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}\omega_{i}#gh-dark-mode-only">|fraction of total effort undertaken by node `i`, set to `1/k`.
|<img src="https://render.githubusercontent.com/render/math?math=k#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}k#gh-dark-mode-only">|number of nodes stakeholders are incentivised to create, set by the validators, a matter of governance. Currently determined by the `reward set` size, and set to 720 in testnet Sandbox.
|<img src="https://render.githubusercontent.com/render/math?math=\alpha#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}\alpha#gh-dark-mode-only">|A Sybil attack resistance parameter - the higher this parameter is set, the stronger the reduction in competitiveness for a Sybil attacker.
|<img src="https://render.githubusercontent.com/render/math?math=PM_{i}#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}PM_{i}#gh-dark-mode-only">|declared profit margin of operator `i`, defaults to 10%.
|<img src="https://render.githubusercontent.com/render/math?math=PF_{i}#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}PF_{i}#gh-dark-mode-only">|uptime of node `i`, scaled to 0 - 1, for the rewarding epoch
|<img src="https://render.githubusercontent.com/render/math?math=PP_{i}#gh-light-mode-only"><img src="https://render.githubusercontent.com/render/math?math=\color{white}PP_{i}#gh-dark-mode-only">|cost of operating node `i` for the duration of the rewarding epoch, set to 40 NYMs.
Node reward for node `i` is determined as:
<img src="https://render.githubusercontent.com/render/math?math=R_{i}=PF_{i} \cdot R \cdot (\sigma^'_{i} \cdot \omega_{i} \cdot k %2b \alpha \cdot \lambda^'_{i} \cdot \sigma^'_{i} \cdot k)/(1 %2b \alpha)#gh-light-mode-only">
<img src="https://render.githubusercontent.com/render/math?math=\color{white}R_{i}=PF_{i} \cdot R \cdot (\sigma^'_{i} \cdot \omega_{i} \cdot k %2b \alpha \cdot \lambda^'_{i} \cdot \sigma^'_{i} \cdot k)/(1 %2b \alpha)#gh-dark-mode-only">
where `s'` is stake `s` scaled over total token circulating supply.
Nym network economic incentives, operator and validator rewards, and scalability of the network are determined according to the principles laid out in the section 6 of [Nym Whitepaper](https://nymtech.net/nym-whitepaper.pdf).
Initial reward pool is set to 250 million Nym, making the circulating supply 750 million Nym.
### Licensing and copyright information
This is a monorepo and components that make up Nym as a system are licensed individually, so for accurate information, please check individual files.
As a general approach, licensing is as follows this pattern:
- applications and binaries are GPLv3
- libraries and components are Apache 2.0 or MIT
- documentation is Apache 2.0 or CC0-1.0
Again, for accurate information, please check individual files.
Nym Node Operators and Validators Temrs and Conditions can be found [here](https://nymtech.net/terms-and-conditions/operators/v1.0.0).
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
pubmodconversion;
pubmodregistration;
pubmodrequest;
pubmodresponse;
pubconstVERSION: u8=2;
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.