Compare commits

...

1 Commits

Author SHA1 Message Date
Bogdan-Ștefan Neacşu 43d443f9b6 WIP 2024-06-17 11:29:45 +00:00
7 changed files with 80 additions and 0 deletions
Generated
+9
View File
@@ -3630,6 +3630,15 @@ dependencies = [
"wasm-utils",
]
[[package]]
name = "mixnet-authenticator"
version = "0.0.0"
dependencies = [
"nym-bin-common",
"nym-client-core",
"serde",
]
[[package]]
name = "multer"
version = "2.1.0"
+1
View File
@@ -96,6 +96,7 @@ members = [
"mixnode",
"sdk/lib/socks5-listener",
"sdk/rust/nym-sdk",
"service-providers/authenticator",
"service-providers/common",
"service-providers/ip-packet-router",
"service-providers/network-requester",
@@ -0,0 +1,14 @@
[package]
name = "mixnet-authenticator"
authors.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
serde = { workspace = true, features = ["derive"] }
nym-bin-common = { path = "../../common/bin-common" }
nym-client-core = { path = "../../common/client-core" }
@@ -0,0 +1,21 @@
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, PartialEq, Serialize)]
#[serde(deny_unknown_fields)]
pub struct Config {
#[serde(flatten)]
pub base: BaseClientConfig,
#[serde(default)]
pub network_requester: NetworkRequester,
pub storage_paths: NetworkRequesterPaths,
#[serde(default)]
pub network_requester_debug: Debug,
pub logging: LoggingSettings,
}
@@ -0,0 +1,28 @@
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
use nym_client_core::config::disk_persistence::CommonClientPaths;
use serde::{Deserialize, Serialize};
use std::path::{Path, PathBuf};
pub const DEFAULT_DESCRIPTION_FILENAME: &str = "description.toml";
#[derive(Debug, Deserialize, PartialEq, Eq, Serialize, Clone)]
pub struct IpPacketRouterPaths {
#[serde(flatten)]
pub common_paths: CommonClientPaths,
/// Location of the file containing our description
pub ip_packet_router_description: PathBuf,
}
impl IpPacketRouterPaths {
pub fn new_base<P: AsRef<Path>>(base_data_directory: P) -> Self {
let base_dir = base_data_directory.as_ref();
Self {
common_paths: CommonClientPaths::new_base(base_dir),
ip_packet_router_description: base_dir.join(DEFAULT_DESCRIPTION_FILENAME),
}
}
}
@@ -0,0 +1,4 @@
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
pub mod config;
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}