9e8f550e6d
* Add placeholder client for implementing coconut interactions * Add db for persistance * Add nymd client * Add new coconut-bandwidth contract * Call deposit function * Introduce error handling * Call the old flow of getting a signature * List available tx hashes * Add signed req in body * Save signature received * Add event generation * Checks in validator-api * Fail with error instead of panic in validator-api route * Fix contract address and small bug * Add file db for storing previous signatures * Encrypt and store data in validator-api * Decrypt the received signature * Remove tx hashes after getting credentials * Small listing changes in client * Change response so that it easier to serialize * Error message is sent to client for display * Remove already signed error and return the previous sig * Merge signature with deposit data in client * Entrypoint for getting the encrypted signature * Refactor blinding stuff so that it can be backed up * Backed up the blind sign request * Client can re-request the encrypted signature shares * Update crypto features * Fix clippy * Activate instantiate test and remove unused code * Add tx tests * Add verification key endpoint test * Voucher consistency test * Test for some errors and a race condition on blind signing * Refactor and add client trait for enabling better testing env * Test some more of blind sign * Finished testing all extract_encryption_key paths * Split into function test and endpoint test * Test for correct signature * Test for state functions * Remove print * Test blind_sign endpoint * Test for cached signature endpoint * Stricter types in voucher * Rename signature with partial_bandwidth_credential * Extra route levels * Length check and remove some unused code from coconut interface * Renamed coconut-bandwidth common crate * Renamed verification_key to identity_key * Use const instead of hardcoded values * Use type aliases for crypto algorithms * Remove unused mods, until needed * Remove unneeded unwrap * Fix some coconut issues that were blocking the wasm client build * Move from sled to existing sql database * Update tests for new db type * Fix wasm for coconut too * Remove sled from dependencies
35 lines
1.1 KiB
TOML
35 lines
1.1 KiB
TOML
[package]
|
|
name = "client-core"
|
|
version = "0.12.0"
|
|
authors = ["Dave Hrycyszyn <futurechimp@users.noreply.github.com>"]
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
dirs = "3.0"
|
|
futures = "0.3"
|
|
humantime-serde = "1.0"
|
|
log = "0.4"
|
|
rand = { version = "0.7.3", features = ["wasm-bindgen"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
sled = "0.34"
|
|
tokio = { version = "1.4", features = ["macros"] }
|
|
url = { version ="2.2", features = ["serde"] }
|
|
|
|
# internal
|
|
config = { path = "../../common/config" }
|
|
crypto = { path = "../../common/crypto" }
|
|
gateway-client = { path = "../../common/client-libs/gateway-client" }
|
|
gateway-requests = { path = "../../gateway/gateway-requests" }
|
|
nonexhaustive-delayqueue = { path = "../../common/nonexhaustive-delayqueue" }
|
|
nymsphinx = { path = "../../common/nymsphinx" }
|
|
pemstore = { path = "../../common/pemstore" }
|
|
topology = { path = "../../common/topology" }
|
|
validator-client = { path = "../../common/client-libs/validator-client" }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|
|
|
|
[features]
|
|
coconut = ["gateway-client/coconut", "gateway-requests/coconut"] |