Changeset View
Changeset View
Standalone View
Standalone View
keyserver/addons/rust-node-addon/src/identity_client/mod.rs
Show All 40 Lines | use opaque_ke::{ | ||||
CredentialResponse, RegistrationResponse, RegistrationUpload, | CredentialResponse, RegistrationResponse, RegistrationUpload, | ||||
}; | }; | ||||
use rand::{rngs::OsRng, CryptoRng, Rng}; | use rand::{rngs::OsRng, CryptoRng, Rng}; | ||||
use serde::{Deserialize, Serialize}; | use serde::{Deserialize, Serialize}; | ||||
use std::collections::HashMap; | use std::collections::HashMap; | ||||
use std::env::var; | use std::env::var; | ||||
use tokio::sync::mpsc; | use tokio::sync::mpsc; | ||||
use tokio_stream::wrappers::ReceiverStream; | use tokio_stream::wrappers::ReceiverStream; | ||||
use tonic::{metadata::MetadataValue, transport::Channel, Request}; | use tonic::{metadata::MetadataValue, transport::Channel, Code, Request}; | ||||
use tracing::{error, instrument}; | use tracing::{error, instrument}; | ||||
lazy_static! { | lazy_static! { | ||||
static ref IDENTITY_SERVICE_CONFIG: IdentityServiceConfig = { | static ref IDENTITY_SERVICE_CONFIG: IdentityServiceConfig = { | ||||
let config_json_string = | let config_json_string = | ||||
var("COMM_JSONCONFIG_secrets_identity_service_config"); | var("COMM_JSONCONFIG_secrets_identity_service_config"); | ||||
match config_json_string { | match config_json_string { | ||||
Ok(json) => serde_json::from_str(&json).unwrap(), | Ok(json) => serde_json::from_str(&json).unwrap(), | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |