28e55c6de6
* Hand coconut issuance off the validator-api
* git to cargo
* Move to own module
* Integrate tauri-client, extract common interface
* cargo fmt
* Ergonomics
* Facelift
* Wrap up tauri client
* Set up publish
* Fix fmt
* Install CI dependencies
* Inline deps
* Remove mac deps
* Add dist dir
* Fix beta clippy nag
* Commit some gateway work
* Thread coconut creds through gateway handshake
* Push in progress patch
* Move State from tauri client to coconut interface
* Move get_aggregated_signature from tauri client to coconut interface
* Move prove_credential from tauri client to coconut interface
* Update sphinx version
* Mount coconut routes and manage config file in rocket
* Split default validator endpoint into host and port
* Add init for simple credential initialization
* Fix common gateway client
* Add coconut cred to webassembly client
* Add coconut cred to socks5 client
* Add coconut cred to native client
* Remove direct coconut-rs dependency
* Use only coconut interface in validator api
* Leave validator-api out of workspace and update Cargo.lock
* Fix clippy warnings and update Cargo.lock after rebase
* Switch from attohttpc to reqwest for async gets
This is not only needed for using async requests, but also because attohttpc
causes OpenSSL issues when cross compiling the webassembly client.
* Replace attohttpc with reqwest for puts too
* Make tauri client commands async
* Fix borrow error
* Guard gateway server code from compiling for wasm (client)
* Fix clippy wasm client
* Fix tests
* Fix clippy in tauri client
* Remove commented code
* Update comment of init message
* Remove unnecessary hex dependency
* Replace config argument with key_pair
* Use `trim()` for whitespace removal
* Move verification key query higher up the function calls
* Put KeyPair instead of Config into rocket's managed items
* Re-enable tauri client verify button
* Move verification key up the function calls for prove_credential
* Use consts for verification_key and blind_sign routes of validator-api
* Replace `match` with `map_err`
* Fix typo
* Remove now unnecessary `Clone` derives
... as config is no longer managed by rocket
* Replace `match` with `map_err`
* Make `InternalSignRequest` really internal to validator-api
* Make `with_keypair` live up to its name
* Update Cargo.lock after rebase
* Replace String error with HandshakeError
* Add CoconutInterfaceError to coconut-interface
* Format the new error in tauri client
* Remove from default, as wasm client doesn't build
* Put public key as init argument...
... for the public attributes of the credential
* Use the hash_to_scalar function to make public key into attribute
Use the function from cli-demo-rs from https://github.com/nymtech/coconut
to make the identity public key into a public attribute.
* Replace vector with array for InitMessage
As we know beforehand the size of the keys, we can use fixed size array
instead of vectors. This eliminates the need for a prefixed length in
the serialized form of the InitMessage structure and enables a easy
deserialization of the remote identity before the actual bincode
deserialization that we do in the handshake process.
Before this, the `extract_remote_identity_from_register_init` function
attempted to deserialize into a public key the length-prefixed public key
received from the client, thus failing sporadically with a `Cannot decompress
Edwards point` error.
* Pass public and private attributes to state `init` instead of PublicKey
* Make tauri call with dummy attributes
* Make clients call with their keypairs
* Revert "Make clients call with their keypairs"
This reverts commit b348f47f7a.
* Put dummy, bandwidth private attribute
Co-authored-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net>
62 lines
1.9 KiB
TOML
62 lines
1.9 KiB
TOML
# Copyright 2020 - Nym Technologies SA <contact@nymtech.net>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
[package]
|
|
name = "nym-validator-api"
|
|
version = "0.11.0"
|
|
authors = [
|
|
"Dave Hrycyszyn <futurechimp@users.noreply.github.com>",
|
|
"Jędrzej Stuczyński <andrew@nymtech.net>",
|
|
"Drazen Urch <durch@users.noreply.github.com>",
|
|
]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
clap = "2.33.0"
|
|
dirs = "3.0"
|
|
dotenv = "0.15.0"
|
|
futures = "0.3"
|
|
humantime-serde = "1.0"
|
|
log = "0.4"
|
|
pin-project = "1.0"
|
|
pretty_env_logger = "0.4"
|
|
rand = "0.7"
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
rocket = { version = "0.5.0-rc.1", features = ["json"] }
|
|
serde = "1.0"
|
|
serde_json = "1.0"
|
|
tokio = { version = "1.4", features = [
|
|
"rt-multi-thread",
|
|
"macros",
|
|
"signal",
|
|
"time",
|
|
] }
|
|
rocket_cors = { git="https://github.com/lawliet89/rocket_cors", rev="dfd3662c49e2f6fc37df35091cb94d82f7fb5915" }
|
|
anyhow = "1"
|
|
getset = "0.1.1"
|
|
const_format = "0.2.15"
|
|
|
|
rocket_sync_db_pools = {version = "0.1.0-rc.1", default-features = false}
|
|
sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate", "time"]}
|
|
coconut-rs = { git = "https://github.com/nymtech/coconut.git", branch = "0.4.0" }
|
|
|
|
## internal
|
|
config = { path = "../common/config" }
|
|
crypto = { path = "../common/crypto" }
|
|
gateway-client = { path = "../common/client-libs/gateway-client" }
|
|
mixnet-contract = { path = "../common/mixnet-contract" }
|
|
nymsphinx = { path = "../common/nymsphinx" }
|
|
topology = { path = "../common/topology" }
|
|
validator-client = { path = "../common/client-libs/validator-client" }
|
|
version-checker = { path = "../common/version-checker" }
|
|
coconut-interface = { path = "../common/coconut-interface" }
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
[build-dependencies]
|
|
tokio = { version="1.4", features=["rt-multi-thread", "macros"] }
|
|
sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate"]}
|