d126d8e5a0
* placeholder handling of wg registration with upgrade mode token * include upgrade mode credentials as part of credential storage * introduce helper for decoding JWT payload * expose methods for removing emergency credentials from the storage * don't allow duplicate emergency credentials with the same content * added authenticator ClientMessage for upgrade mode check * retrieve credentials with longest expiration first * post rebasing fixes * fixed gateway config * feat: allow specifying minimum node performance for client init * nym-node UM improvements * fixed upgrade mode bandwidth on initial authentication * fix: logs and thresholds * expose attestation information from nym-node http api * additional logs * post rebasing fixes * make @simonwicky happy by removing empty lines in emergency_credential table definition * chore: remove '_' prefix for internal counters within in-mem ecash storage * improved import of 'UpgradeModeState' within the nym-node * use explicit time dependency within credential-storage * re-order imports within the gateway-client * moved 'AvailableBandwidth' definition to the monorepo
57 lines
1.7 KiB
TOML
57 lines
1.7 KiB
TOML
[package]
|
|
name = "nym-credential-storage"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
async-trait = { workspace = true }
|
|
bincode = { workspace = true, optional = true }
|
|
|
|
log = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"], optional = true }
|
|
time = { workspace = true }
|
|
tokio = { workspace = true, features = ["sync"] }
|
|
zeroize = { workspace = true, features = ["zeroize_derive"] }
|
|
|
|
nym-credentials = { path = "../credentials" }
|
|
nym-compact-ecash = { path = "../nym_offline_compact_ecash" }
|
|
nym-ecash-time = { path = "../ecash-time" }
|
|
|
|
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx-pool-guard]
|
|
path = "../../sqlx-pool-guard"
|
|
|
|
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx]
|
|
workspace = true
|
|
features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate", "time"]
|
|
|
|
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio]
|
|
workspace = true
|
|
features = ["rt-multi-thread", "net", "signal", "fs"]
|
|
|
|
|
|
[dev-dependencies]
|
|
anyhow = { workspace = true }
|
|
nym-crypto = { path = "../crypto", features = ["asymmetric", "rand"] }
|
|
nym-test-utils = { path = "../test-utils" }
|
|
nym-credentials-interface = { path = "../credentials-interface" }
|
|
nym-compact-ecash = { path = "../nym_offline_compact_ecash" }
|
|
|
|
|
|
[build-dependencies]
|
|
anyhow = { workspace = true }
|
|
sqlx = { workspace = true, features = [
|
|
"runtime-tokio-rustls",
|
|
"sqlite",
|
|
"macros",
|
|
"migrate",
|
|
] }
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
|
|
|
|
[features]
|
|
persistent-storage = ["bincode", "serde"]
|