repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/entry_tags.rs | aries/aries_vcx_wallet/src/wallet/askar/entry_tags.rs | use aries_askar::entry::EntryTag;
use crate::wallet::record_tags::{RecordTag, RecordTags};
impl From<EntryTag> for RecordTag {
fn from(askar_tag: EntryTag) -> Self {
match askar_tag {
EntryTag::Encrypted(key, val) => RecordTag::new(&key, &val),
EntryTag::Plaintext(key, val) => Reco... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/askar_record_wallet.rs | aries/aries_vcx_wallet/src/wallet/askar/askar_record_wallet.rs | use std::str::FromStr;
use aries_askar::entry::{EntryTag, TagFilter};
use async_trait::async_trait;
use super::{all_askar_records::AllAskarRecords, AskarWallet};
use crate::{
errors::error::{VcxWalletError, VcxWalletResult},
wallet::{
base_wallet::{
record::{AllRecords, PartialRecord, Reco... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/pack.rs | aries/aries_vcx_wallet/src/wallet/askar/pack.rs | use aries_askar::kms::{
crypto_box, crypto_box_random_nonce, crypto_box_seal, KeyAlg::Ed25519, LocalKey,
};
use public_key::Key;
use super::{
askar_utils::ed25519_to_x25519,
packing_types::{
Jwe, JweAlg, ProtectedData, ProtectedHeaderEnc, ProtectedHeaderTyp, Recipient,
},
};
use crate::{
er... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/packing_types.rs | aries/aries_vcx_wallet/src/wallet/askar/packing_types.rs | use serde::{de::Unexpected, Deserialize, Serialize};
use crate::wallet::base_wallet::base64_string::Base64String;
pub const PROTECTED_HEADER_ENC: &str = "xchacha20poly1305_ietf";
pub const PROTECTED_HEADER_TYP: &str = "JWM/1.0";
#[derive(Debug)]
pub enum ProtectedHeaderEnc {
XChaCha20Poly1305,
}
impl Serialize ... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/sig_type.rs | aries/aries_vcx_wallet/src/wallet/askar/sig_type.rs | use aries_askar::{crypto::alg::EcCurves, kms::KeyAlg};
use crate::errors::error::{VcxWalletError, VcxWalletResult};
#[derive(Debug, Copy, Clone)]
pub enum SigType {
EdDSA,
ES256,
ES256K,
ES384,
}
impl From<SigType> for &str {
fn from(value: SigType) -> Self {
match value {
Sig... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/rng_method.rs | aries/aries_vcx_wallet/src/wallet/askar/rng_method.rs | #[derive(Clone, Default, Copy, Debug)]
pub enum RngMethod {
#[default]
RandomDet,
Bls,
}
impl From<RngMethod> for Option<&str> {
fn from(value: RngMethod) -> Self {
match value {
RngMethod::RandomDet => None,
RngMethod::Bls => Some("bls_keygen"),
}
}
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/partial_record.rs | aries/aries_vcx_wallet/src/wallet/askar/partial_record.rs | use super::askar_utils::value_from_entry;
use crate::{
errors::error::VcxWalletResult,
wallet::{
askar::askar_utils::{local_key_to_bs58_private_key, local_key_to_bs58_public_key},
base_wallet::{
key_value::KeyValue, record::PartialRecord, record_category::RecordCategory,
},
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/mod.rs | aries/aries_vcx_wallet/src/wallet/askar/mod.rs | use aries_askar::{
entry::{Entry, EntryTag},
kms::{KeyAlg, KeyEntry, LocalKey},
Session, Store,
};
use async_trait::async_trait;
use public_key::Key;
use self::{askar_utils::local_key_to_bs58_public_key, askar_wallet_config::AskarWalletConfig};
use super::{
base_wallet::{
did_value::DidValue, k... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/all_askar_records.rs | aries/aries_vcx_wallet/src/wallet/askar/all_askar_records.rs | use async_trait::async_trait;
use crate::{
errors::error::VcxWalletResult,
wallet::base_wallet::record::{AllRecords, PartialRecord},
};
pub struct AllAskarRecords {
iterator: std::vec::IntoIter<PartialRecord>,
total_count: Option<usize>,
}
impl AllAskarRecords {
pub fn new(iterator: std::vec::Int... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/askar_utils.rs | aries/aries_vcx_wallet/src/wallet/askar/askar_utils.rs | use aries_askar::{
crypto::alg::{BlsCurves, EcCurves, KeyAlg},
entry::Entry,
kms::LocalKey,
};
use public_key::{Key, KeyType};
use serde::Deserialize;
use crate::{
errors::error::{VcxWalletError, VcxWalletResult},
wallet::{base_wallet::base58_string::Base58String, utils::random_seed},
};
pub fn lo... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/askar_import_config.rs | aries/aries_vcx_wallet/src/wallet/askar/askar_import_config.rs | use serde::Deserialize;
use crate::errors::error::VcxWalletResult;
#[derive(Deserialize, Clone, Copy, Debug)]
pub struct AskarImportConfig {}
impl AskarImportConfig {
pub async fn import_wallet(&self) -> VcxWalletResult<()> {
todo!()
}
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/key_method.rs | aries/aries_vcx_wallet/src/wallet/askar/key_method.rs | use aries_askar::{
storage::{Argon2Level, KdfMethod},
StoreKeyMethod,
};
use serde::Deserialize;
#[derive(Debug, Copy, Clone, Deserialize)]
pub enum KeyMethod {
DeriveKey { inner: AskarKdfMethod },
RawKey,
Unprotected,
}
impl From<KeyMethod> for StoreKeyMethod {
fn from(value: KeyMethod) -> Se... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/askar_wallet_config.rs | aries/aries_vcx_wallet/src/wallet/askar/askar_wallet_config.rs | use async_trait::async_trait;
use serde::Deserialize;
use super::{key_method::KeyMethod, AskarWallet};
use crate::{errors::error::VcxWalletResult, wallet::base_wallet::ManageWallet};
#[derive(Clone, Debug, Deserialize)]
pub struct AskarWalletConfig {
pub db_url: String,
pub key_method: KeyMethod,
pub pass... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/unpack.rs | aries/aries_vcx_wallet/src/wallet/askar/unpack.rs | use aries_askar::{
crypto::alg::Chacha20Types,
kms::{
crypto_box_open, crypto_box_seal_open,
KeyAlg::{self, Ed25519},
KeyEntry, LocalKey, ToDecrypt,
},
Session,
};
use public_key::{Key, KeyType};
use super::{
askar_utils::{ed25519_to_x25519, from_json_str},
packing_types... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/askar_did_wallet.rs | aries/aries_vcx_wallet/src/wallet/askar/askar_did_wallet.rs | use aries_askar::{
crypto::alg::Chacha20Types,
kms::{KeyAlg, LocalKey},
};
use async_trait::async_trait;
use public_key::Key;
use super::{
askar_utils::{local_key_to_public_key, public_key_to_local_key, seed_from_opt},
pack::Pack,
sig_type::SigType,
unpack::unpack,
AskarWallet,
};
use crate... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/wallet/askar/entry.rs | aries/aries_vcx_wallet/src/wallet/askar/entry.rs | use std::str::FromStr;
use aries_askar::entry::{Entry, EntryKind};
use crate::{
errors::error::VcxWalletError,
wallet::base_wallet::{record::Record, record_category::RecordCategory},
};
impl TryFrom<Entry> for Record {
type Error = VcxWalletError;
fn try_from(entry: Entry) -> Result<Self, Self::Erro... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/errors/error.rs | aries/aries_vcx_wallet/src/errors/error.rs | use std::{
fmt::{self, Display},
string::FromUtf8Error,
};
use thiserror::Error as ThisError;
use crate::wallet::base_wallet::record_category::RecordCategory;
pub type VcxWalletResult<T> = Result<T, VcxWalletError>;
pub struct NotFoundInfo(Option<String>);
impl NotFoundInfo {
pub fn new_with_details(ca... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/errors/mapping_others.rs | aries/aries_vcx_wallet/src/errors/mapping_others.rs | use std::string::FromUtf8Error;
use super::error::VcxWalletError;
impl From<bs58::decode::Error> for VcxWalletError {
fn from(value: bs58::decode::Error) -> Self {
Self::NotBase58(value)
}
}
impl From<base64::DecodeError> for VcxWalletError {
fn from(value: base64::DecodeError) -> Self {
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/errors/mod.rs | aries/aries_vcx_wallet/src/errors/mod.rs | pub mod error;
#[cfg(feature = "askar_wallet")]
mod mapping_askar;
mod mapping_others;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx_wallet/src/errors/mapping_askar.rs | aries/aries_vcx_wallet/src/errors/mapping_askar.rs | use aries_askar::ErrorKind;
use super::error::{NotFoundInfo, VcxWalletError};
impl From<aries_askar::Error> for VcxWalletError {
fn from(err: aries_askar::Error) -> Self {
match err.kind() {
ErrorKind::Backend
| ErrorKind::Custom
| ErrorKind::Encryption
| Er... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/setup.rs | aries/agents/aath-backchannel/src/setup.rs | use std::{io::prelude::*, sync::Arc};
use aries_vcx_agent::{
aries_vcx::aries_vcx_wallet::wallet::askar::AskarWallet, build_askar_wallet,
Agent as AriesAgent, WalletInitConfig,
};
use rand::{rng, Rng};
use reqwest::Url;
#[derive(Debug, Deserialize)]
struct SeedResponse {
seed: String,
}
struct WriterSeed... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/error.rs | aries/agents/aath-backchannel/src/error.rs | use actix_web::{error, http::StatusCode, HttpResponse, HttpResponseBuilder};
use aries_vcx_agent::{
aries_vcx,
aries_vcx::{did_parser_nom::ParseError, messages::error::MsgTypeError},
AgentError,
};
use derive_more::{Display, Error};
pub type HarnessResult<T> = Result<T, HarnessError>;
#[derive(Debug, Disp... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/main.rs | aries/agents/aath-backchannel/src/main.rs | #[allow(clippy::await_holding_lock)]
mod controllers;
mod error;
mod setup;
#[macro_use]
extern crate serde;
#[macro_use]
extern crate serde_json;
#[macro_use]
extern crate log;
extern crate aries_vcx_agent;
extern crate clap;
extern crate reqwest;
extern crate uuid;
use std::{
collections::HashMap,
sync::{Mu... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/presentation.rs | aries/agents/aath-backchannel/src/controllers/presentation.rs | use std::{collections::HashMap, sync::RwLock};
use actix_web::{get, post, web, Responder};
use anoncreds_types::data_types::messages::pres_request::{
AttributeInfo, NonRevokedInterval, PredicateInfo, PresentationRequestPayload,
};
use aries_vcx_agent::aries_vcx::{
aries_vcx_anoncreds::anoncreds::base_anoncreds... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/general.rs | aries/agents/aath-backchannel/src/controllers/general.rs | use std::sync::RwLock;
use actix_web::{get, post, web, HttpResponse, Responder};
use serde_json::Value;
use crate::{error::HarnessResult, HarnessAgent};
impl HarnessAgent {
pub fn get_status_json(&self) -> HarnessResult<String> {
Ok(json!({ "status": self.status }).to_string())
}
pub fn get_publ... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/connection.rs | aries/agents/aath-backchannel/src/controllers/connection.rs | use std::sync::RwLock;
use actix_web::{get, post, web, Responder};
use aries_vcx_agent::aries_vcx::{
handlers::util::AnyInvitation,
messages::msg_fields::protocols::{connection::invitation::Invitation, notification::ack::Ack},
protocols::connection::{State as ConnectionState, ThinState},
};
use crate::{
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/out_of_band.rs | aries/agents/aath-backchannel/src/controllers/out_of_band.rs | use std::sync::RwLock;
use actix_web::{get, post, web, Responder};
use aries_vcx_agent::aries_vcx::messages::AriesMessage;
use crate::{
controllers::AathRequest,
error::{HarnessError, HarnessErrorType, HarnessResult},
soft_assert_eq, HarnessAgent,
};
impl HarnessAgent {
pub async fn create_oob_invita... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/schema.rs | aries/agents/aath-backchannel/src/controllers/schema.rs | use std::sync::RwLock;
use actix_web::{get, post, web, Responder};
use crate::{
controllers::AathRequest,
error::{HarnessError, HarnessErrorType, HarnessResult},
soft_assert_eq, HarnessAgent,
};
#[derive(Serialize, Deserialize, Default)]
pub struct Schema {
schema_name: String,
schema_version: St... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/did_exchange.rs | aries/agents/aath-backchannel/src/controllers/did_exchange.rs | use std::sync::RwLock;
use actix_web::{get, post, web, Responder};
use aries_vcx_agent::aries_vcx::{
did_parser_nom::Did,
messages::{
msg_fields::protocols::did_exchange::{
v1_0::DidExchangeV1_0, v1_1::DidExchangeV1_1, v1_x::request::AnyRequest, DidExchange,
},
AriesMessage,... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/mod.rs | aries/agents/aath-backchannel/src/controllers/mod.rs | use serde::Deserialize;
pub mod connection;
pub mod credential_definition;
pub mod did_exchange;
pub mod didcomm;
pub mod general;
pub mod issuance;
pub mod out_of_band;
pub mod presentation;
pub mod revocation;
pub mod schema;
#[derive(Deserialize)]
pub struct AathRequest<T> {
#[serde(default)]
pub id: Strin... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/didcomm.rs | aries/agents/aath-backchannel/src/controllers/didcomm.rs | use std::sync::RwLock;
use actix_web::{web, HttpResponse, Responder};
use aries_vcx_agent::aries_vcx::{
messages::{
msg_fields::protocols::{
connection::Connection,
cred_issuance::{v1::CredentialIssuanceV1, CredentialIssuance},
did_exchange::{
v1_0::DidEx... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/credential_definition.rs | aries/agents/aath-backchannel/src/controllers/credential_definition.rs | use std::sync::RwLock;
use actix_web::{get, post, web, Responder};
use anoncreds_types::data_types::identifiers::{
cred_def_id::CredentialDefinitionId, schema_id::SchemaId,
};
use aries_vcx_agent::aries_vcx::did_parser_nom::Did;
use reqwest::multipart;
use crate::{
controllers::AathRequest,
error::{Harnes... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/revocation.rs | aries/agents/aath-backchannel/src/controllers/revocation.rs | use std::sync::RwLock;
use actix_web::{get, post, web, Responder};
use crate::{controllers::AathRequest, error::HarnessResult, HarnessAgent};
#[derive(Serialize, Deserialize, Default, Clone, Debug)]
pub struct CredentialRevocationData {
cred_rev_id: String,
rev_registry_id: String,
publish_immediately: b... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aath-backchannel/src/controllers/issuance.rs | aries/agents/aath-backchannel/src/controllers/issuance.rs | use std::sync::RwLock;
use actix_web::{get, post, web, Responder};
use anoncreds_types::data_types::identifiers::cred_def_id::CredentialDefinitionId;
use aries_vcx_agent::aries_vcx::{
handlers::util::OfferInfo,
messages::msg_fields::protocols::cred_issuance::v1::{
propose_credential::{ProposeCredential... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/build.rs | aries/agents/mediator/build.rs | // generated by `sqlx migrate build-script`
fn main() {
// trigger recompilation when a new migration is added
println!("cargo:rerun-if-changed=migrations");
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/lib.rs | aries/agents/mediator/src/lib.rs | pub mod aries_agent;
pub mod didcomm_handlers;
pub mod http_routes;
pub mod mediation;
pub mod persistence;
pub mod utils;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/http_routes/mod.rs | aries/agents/mediator/src/http_routes/mod.rs | use std::sync::Arc;
use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use axum::{
body::Bytes,
extract::State,
http::header::{HeaderMap, ACCEPT},
response::{Html, IntoResponse, Response},
routing::get,
Json, Router,
};
use serde::{Deserialize, Serialize};
use serde_json::Value;
use crate:... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/aries_agent/utils.rs | aries/agents/mediator/src/aries_agent/utils.rs | use aries_vcx::{
common::signing::sign_connection_response, errors::error::VcxResult, transport::Transport,
};
use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use async_trait::async_trait;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::{
decorators::thread::Thread,
msg_fields::protocols... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/aries_agent/mod.rs | aries/agents/mediator/src/aries_agent/mod.rs | use std::{marker::PhantomData, sync::Arc};
use aries_vcx::{
handlers::out_of_band::sender::OutOfBandSender,
messages::msg_fields::protocols::out_of_band::invitation::OobService,
utils::encryption_envelope::EncryptionEnvelope,
};
use aries_vcx_wallet::{
errors::error::VcxWalletError,
wallet::{
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/aries_agent/client/transports.rs | aries/agents/mediator/src/aries_agent/client/transports.rs | use async_trait::async_trait;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use log::debug;
use serde_json::Value;
#[derive(thiserror::Error, Debug)]
#[error("{msg}")]
pub struct AriesTransportError {
pub msg: String,
}
impl AriesTransportError {
fn from_std_error(err: impl std::error::Error) -> Self {
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/aries_agent/client/mod.rs | aries/agents/mediator/src/aries_agent/client/mod.rs | use aries_vcx::{
handlers::util::AnyInvitation,
protocols::{
connection::invitee::{
states::{
completed::Completed, initial::Initial as ClientInit,
requested::Requested as ClientRequestSent,
},
InviteeConnection,
},
medi... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/didcomm_handlers/connection.rs | aries/agents/mediator/src/didcomm_handlers/connection.rs | use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use messages::msg_fields::protocols::connection::Connection;
use super::{unhandled_aries_message, utils::prelude::*, ArcAgent};
pub async fn handle_aries_connection<T: BaseWallet, P: MediatorPersistence>(
agent: ArcAgent<T, P>,
connection: Connection,
) -... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/didcomm_handlers/pickup.rs | aries/agents/mediator/src/didcomm_handlers/pickup.rs | use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use messages::msg_fields::protocols::pickup::Pickup;
use super::utils::prelude::*;
pub async fn handle_pickup_protocol(
agent: &ArcAgent<impl BaseWallet, impl MediatorPersistence>,
pickup_message: Pickup,
auth_pubkey: &str,
) -> Result<Pickup, String>... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/didcomm_handlers/utils.rs | aries/agents/mediator/src/didcomm_handlers/utils.rs | pub mod prelude {
pub use aries_vcx::utils::encryption_envelope::EncryptionEnvelope;
pub use crate::{aries_agent::ArcAgent, persistence::MediatorPersistence, utils::prelude::*};
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/didcomm_handlers/mod.rs | aries/agents/mediator/src/didcomm_handlers/mod.rs | use std::fmt::Debug;
use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use axum::{body::Bytes, extract::State, Json};
use messages::AriesMessage;
use serde::{Deserialize, Serialize};
use serde_json::{json, Value};
use utils::prelude::*;
mod connection;
mod forward;
mod mediator_coord;
mod pickup;
mod utils;
use... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/didcomm_handlers/mediator_coord.rs | aries/agents/mediator/src/didcomm_handlers/mediator_coord.rs | use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use messages::msg_fields::protocols::coordinate_mediation::{
CoordinateMediation, MediateGrant, MediateGrantContent, MediateGrantDecorators,
};
use uuid::Uuid;
use super::utils::prelude::*;
pub async fn handle_mediation_coord(
agent: &ArcAgent<impl BaseWa... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/didcomm_handlers/forward.rs | aries/agents/mediator/src/didcomm_handlers/forward.rs | use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use messages::msg_fields::protocols::{notification::ack::Ack, routing::Forward};
use super::{utils::prelude::*, ArcAgent};
use crate::mediation::forward::handle_forward;
pub async fn handle_routing_forward(
agent: ArcAgent<impl BaseWallet, impl MediatorPersis... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/utils/prelude.rs | aries/agents/mediator/src/utils/prelude.rs | pub use log::{debug, error, info};
// Generic Wrapper struct for newtype pattern
// for implementing external trait on external types
// pub struct Wrapper<T>(pub T);
// Generic Result
// pub type Result_<T> = Result<T, Box<dyn Error>>;
pub fn string_from_std_error(err: impl std::error::Error) -> String {
err.to... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/utils/structs.rs | aries/agents/mediator/src/utils/structs.rs | pub type VerKey = String;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/utils/mod.rs | aries/agents/mediator/src/utils/mod.rs | pub use prelude::*;
pub mod binary_utils;
pub mod prelude;
pub mod structs;
///// Utility function for mapping any error into a `500 Internal Server Error`
///// response.
// fn internal_error<E>(err: E) -> (axum::http::StatusCode, String)
// where
// E: std::error::Error,
// {
// (axum::http::StatusCode::INTE... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/utils/binary_utils.rs | aries/agents/mediator/src/utils/binary_utils.rs | pub fn setup_logging() {
let env = env_logger::Env::default().default_filter_or("info");
env_logger::init_from_env(env);
}
pub fn load_dot_env() {
let _ = dotenvy::dotenv();
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/bin/mediator.rs | aries/agents/mediator/src/bin/mediator.rs | use aries_vcx_wallet::wallet::askar::{
askar_wallet_config::AskarWalletConfig, key_method::KeyMethod, AskarWallet,
};
use log::info;
use mediator::aries_agent::AgentBuilder;
use uuid::Uuid;
#[tokio::main]
async fn main() {
load_dot_env();
setup_logging();
info!("Starting up mediator! ⚙️⚙️");
let en... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/persistence/errors.rs | aries/agents/mediator/src/persistence/errors.rs | use thiserror::Error;
#[derive(Error, Debug)]
#[error("No account found matching given input: {0}")]
pub struct AccountNotFound(pub String);
/// Error closely related to the storage backend
#[derive(Error, Debug)]
#[error(transparent)]
pub struct StorageBackendError {
#[from]
pub source: Box<dyn std::error::E... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/persistence/mod.rs | aries/agents/mediator/src/persistence/mod.rs | // Copyright 2023 Naian G.
// SPDX-License-Identifier: Apache-2.0
pub mod database;
pub mod errors;
use async_trait::async_trait;
/// Database backend is used for default implementation of MediatorPersistence trait
pub use database::get_db_pool as get_persistence;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use se... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/persistence/database/mod.rs | aries/agents/mediator/src/persistence/database/mod.rs | // Copyright 2023 Naian G.
// SPDX-License-Identifier: Apache-2.0
mod mysql;
pub use mysql::get_db_pool;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/persistence/database/mysql.rs | aries/agents/mediator/src/persistence/database/mysql.rs | // Copyright 2023 Naian G.
// SPDX-License-Identifier: Apache-2.0
use anyhow::anyhow;
use async_trait::async_trait;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use futures::TryStreamExt;
use log::info;
use sqlx::{
mysql::{MySqlPoolOptions, MySqlRow},
MySqlPool, Row,
};
use super::super::MediatorPersistence... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/mediation/pickup.rs | aries/agents/mediator/src/mediation/pickup.rs | // Copyright 2023 Naian G.
// SPDX-License-Identifier: Apache-2.0
use std::sync::Arc;
use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine};
use log::info;
use messages::{
decorators::attachment::{Attachment, AttachmentData, AttachmentType},
msg_fields::protocols::pickup::{
Delivery, DeliveryC... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/mediation/mod.rs | aries/agents/mediator/src/mediation/mod.rs | pub mod coordination;
pub mod forward;
pub mod pickup;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/mediation/coordination.rs | aries/agents/mediator/src/mediation/coordination.rs | // Copyright 2023 Naian G.
// SPDX-License-Identifier: Apache-2.0
use std::sync::Arc;
use messages::msg_fields::protocols::coordinate_mediation::{
keylist::KeylistItem,
keylist_update::{KeylistUpdateItem, KeylistUpdateItemAction},
keylist_update_response::{KeylistUpdateItemResult, KeylistUpdateResponseIte... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/src/mediation/forward.rs | aries/agents/mediator/src/mediation/forward.rs | // Copyright 2023 Naian G.
// SPDX-License-Identifier: Apache-2.0
use std::sync::Arc;
use log::{debug, info};
use messages::{
decorators::thread::Thread,
msg_fields::protocols::{
notification::ack::{Ack, AckContent, AckDecorators, AckStatus},
routing::Forward,
},
};
use uuid::Uuid;
use cr... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/mediator-readme.rs | aries/agents/mediator/tests/mediator-readme.rs | mod common;
use anyhow::Result;
use log::info;
use mediator::http_routes::ReadmeInfo;
use reqwest::header::ACCEPT;
use url::Url;
use crate::common::test_setup::setup_env_logging;
static LOGGING_INIT: std::sync::Once = std::sync::Once::new();
const ENDPOINT_ROOT: &str = "http://localhost:8005";
#[tokio::test]
async... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/mediator-oob-invitation.rs | aries/agents/mediator/tests/mediator-oob-invitation.rs | mod common;
use anyhow::Result;
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;
use url::Url;
use crate::common::{prelude::*, test_setup::setup_env_logging};
static LOGGING_INIT: std::sync::Once = std::sync::Once::new();
const ENDPOINT_ROOT: &str = "http://localhost:8005";... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/mediator-routing-forward.rs | aries/agents/mediator/tests/mediator-routing-forward.rs | mod common;
use aries_vcx::utils::encryption_envelope::EncryptionEnvelope;
use mediator::aries_agent::client::transports::AriesTransport;
use messages::msg_fields::protocols::basic_message::{
BasicMessage, BasicMessageContent, BasicMessageDecorators,
};
use crate::common::{
agent_and_transport_utils::{
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/mediator-aries-connection.rs | aries/agents/mediator/tests/mediator-aries-connection.rs | mod common;
use aries_vcx_wallet::wallet::askar::AskarWallet;
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;
use crate::common::{prelude::*, test_setup::setup_env_logging};
static LOGGING_INIT: std::sync::Once = std::sync::Once::new();
const ENDPOINT_ROOT: &str = "http://... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/mediator-coord-protocol.rs | aries/agents/mediator/tests/mediator-coord-protocol.rs | mod common;
use aries_vcx_wallet::wallet::base_wallet::did_wallet::DidWallet;
use messages::{
msg_fields::protocols::coordinate_mediation::{
keylist_update::{KeylistUpdateItem, KeylistUpdateItemAction},
CoordinateMediation, KeylistQuery, KeylistQueryContent, KeylistUpdate,
KeylistUpdateCont... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/mediator-protocol-pickup.rs | aries/agents/mediator/tests/mediator-protocol-pickup.rs | mod common;
use aries_vcx::utils::encryption_envelope::EncryptionEnvelope;
use aries_vcx_wallet::wallet::askar::AskarWallet;
use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine};
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use mediator::aries_agent::client::transports::AriesTransport;
use messages::{
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/common/mod.rs | aries/agents/mediator/tests/common/mod.rs | #![allow(dead_code)]
pub mod agent_and_transport_utils;
pub mod test_setup {
// inspired by
// https://stackoverflow.com/questions/58006033/how-to-run-setup-code-before-any-tests-run-in-rust
static INIT: std::sync::Once = std::sync::Once::new();
pub trait OneTimeInit {
// runs the initializatio... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/tests/common/agent_and_transport_utils.rs | aries/agents/mediator/tests/common/agent_and_transport_utils.rs | use aries_vcx::{
protocols::{
connection::invitee::{states::completed::Completed, InviteeConnection},
oob::oob_invitation_to_legacy_did_doc,
},
utils::encryption_envelope::EncryptionEnvelope,
};
use aries_vcx_wallet::wallet::{askar::AskarWallet, base_wallet::BaseWallet};
use diddoc_legacy::a... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/client-tui/src/lib.rs | aries/agents/mediator/client-tui/src/lib.rs | use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use mediator::{aries_agent::ArcAgent, persistence::MediatorPersistence};
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation;
use serde_json::{json, Value};
pub async fn handle_register(
agent: ArcAgent<impl BaseWallet, im... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/client-tui/src/main.rs | aries/agents/mediator/client-tui/src/main.rs | use aries_vcx_wallet::wallet::askar::AskarWallet;
mod tui;
/// Aries Agent TUI
#[tokio::main]
async fn main() {
use mediator::{
aries_agent::AgentBuilder,
utils::binary_utils::{load_dot_env, setup_logging},
};
load_dot_env();
setup_logging();
log::info!("TUI initializing!");
l... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/mediator/client-tui/src/tui.rs | aries/agents/mediator/client-tui/src/tui.rs | use std::sync::Arc;
use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use client_tui::handle_register;
use cursive::{
direction::Orientation,
event::Key,
view::{Nameable, SizeConstraint},
views::{
Dialog, DummyView, LinearLayout, Panel, ResizedView, ScrollView, SelectView, TextArea,
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/lib.rs | aries/agents/aries-vcx-agent/src/lib.rs | extern crate serde;
extern crate serde_json;
#[macro_use]
extern crate log;
pub extern crate aries_vcx;
extern crate uuid;
mod agent;
mod error;
mod handlers;
mod http;
mod storage;
pub use agent::*;
pub use error::*;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/http.rs | aries/agents/aries-vcx-agent/src/http.rs | use aries_vcx::{errors::error::VcxResult, transport::Transport};
use async_trait::async_trait;
use url::Url;
pub struct VcxHttpClient;
#[async_trait]
impl Transport for VcxHttpClient {
async fn send_message(&self, msg: Vec<u8>, service_endpoint: &Url) -> VcxResult<()> {
shared::http_client::post_message(m... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/storage/mod.rs | aries/agents/aries-vcx-agent/src/storage/mod.rs | use crate::AgentResult;
pub(crate) mod agent_storage_inmem;
pub trait AgentStorage<T> {
type Value;
fn get(&self, id: &str) -> AgentResult<T>;
fn insert(&self, id: &str, obj: T) -> AgentResult<String>;
fn contains_key(&self, id: &str) -> bool;
fn find_by<F>(&self, closure: F) -> AgentResult<Vec<St... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/storage/agent_storage_inmem.rs | aries/agents/aries-vcx-agent/src/storage/agent_storage_inmem.rs | use std::{
collections::HashMap,
ops::Deref,
sync::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard},
};
use super::AgentStorage;
use crate::error::*;
pub struct AgentStorageInMem<T>
where
T: Clone,
{
pub name: String,
pub store: RwLock<HashMap<String, Mutex<T>>>,
}
impl<T> AgentStorageInMem... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/error/error_struct.rs | aries/agents/aries-vcx-agent/src/error/error_struct.rs | use crate::error::AgentErrorKind;
#[derive(Debug)]
pub struct AgentError {
pub message: String,
pub kind: AgentErrorKind,
}
impl std::fmt::Display for AgentError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::result::Result<(), std::fmt::Error> {
f.write_str(&format!("{}: {}", self.kind, sel... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/error/error_kind.rs | aries/agents/aries-vcx-agent/src/error/error_kind.rs | #[derive(Copy, Clone, Eq, PartialEq, Debug, thiserror::Error)]
pub enum AgentErrorKind {
#[error("AriesVCX error")]
GenericAriesVcxError,
#[error("Failed to get invite details")]
InviteDetails,
#[error("No object found with specified ID")]
NotFound,
#[error("Unable to lock storage")]
Loc... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/error/result.rs | aries/agents/aries-vcx-agent/src/error/result.rs | use crate::error::*;
pub type AgentResult<T> = Result<T, AgentError>;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/error/mod.rs | aries/agents/aries-vcx-agent/src/error/mod.rs | mod convertors;
mod error_kind;
mod error_struct;
mod result;
pub use error_kind::AgentErrorKind;
pub use error_struct::AgentError;
pub use result::AgentResult;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/error/convertors.rs | aries/agents/aries-vcx-agent/src/error/convertors.rs | use std::{convert::From, num::ParseIntError};
use aries_vcx::{
did_doc::error::DidDocumentBuilderError,
errors::error::{AriesVcxError, AriesVcxErrorKind},
protocols::did_exchange::state_machine::generic::GenericDidExchange,
};
use aries_vcx_ledger::errors::error::VcxLedgerError;
use did_resolver_sov::did_r... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/revocation_registry.rs | aries/agents/aries-vcx-agent/src/handlers/revocation_registry.rs | use std::{
path::Path,
sync::{Arc, Mutex},
};
use anoncreds_types::data_types::identifiers::cred_def_id::CredentialDefinitionId;
use aries_vcx::{common::primitives::revocation_registry::RevocationRegistry, did_parser_nom::Did};
use aries_vcx_anoncreds::anoncreds::anoncreds::Anoncreds;
use aries_vcx_ledger::led... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/prover.rs | aries/agents/aries-vcx-agent/src/handlers/prover.rs | use std::{collections::HashMap, sync::Arc};
use anoncreds_types::data_types::messages::cred_selection::SelectedCredentials;
use aries_vcx::{
handlers::{proof_presentation::prover::Prover, util::PresentationProposalData},
messages::{
msg_fields::protocols::present_proof::v1::{
ack::AckPresen... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/connection.rs | aries/agents/aries-vcx-agent/src/handlers/connection.rs | use std::sync::{Arc, Mutex};
use aries_vcx::{
handlers::util::AnyInvitation,
messages::{
msg_fields::protocols::{
connection::{request::Request, response::Response},
notification::ack::Ack,
trust_ping::ping::Ping,
},
AriesMessage,
},
protocols... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/out_of_band.rs | aries/agents/aries-vcx-agent/src/handlers/out_of_band.rs | use std::sync::Arc;
use aries_vcx::{
handlers::out_of_band::{
receiver::OutOfBandReceiver, sender::OutOfBandSender, GenericOutOfBand,
},
messages::{
msg_fields::protocols::out_of_band::invitation::{Invitation as OobInvitation, OobService},
msg_types::{
protocols::did_exc... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/schema.rs | aries/agents/aries-vcx-agent/src/handlers/schema.rs | use std::sync::{Arc, Mutex};
use aries_vcx::{common::primitives::credential_schema::Schema, did_parser_nom::Did};
use aries_vcx_anoncreds::anoncreds::anoncreds::Anoncreds;
use aries_vcx_ledger::ledger::{
base_ledger::AnoncredsLedgerRead,
indy_vdr_ledger::{DefaultIndyLedgerRead, DefaultIndyLedgerWrite},
};
use ... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/did_exchange.rs | aries/agents/aries-vcx-agent/src/handlers/did_exchange.rs | use std::sync::Arc;
use aries_vcx::{
did_doc::schema::{service::typed::ServiceType, types::uri::Uri},
did_parser_nom::Did,
messages::{
msg_fields::protocols::{
did_exchange::v1_x::{
complete::Complete, problem_report::ProblemReport, request::AnyRequest,
r... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/mod.rs | aries/agents/aries-vcx-agent/src/handlers/mod.rs | pub(crate) mod connection;
pub(crate) mod credential_definition;
pub(crate) mod did_exchange;
pub(crate) mod holder;
pub(crate) mod issuer;
pub(crate) mod out_of_band;
pub(crate) mod prover;
pub(crate) mod revocation_registry;
pub(crate) mod schema;
pub(crate) mod verifier;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/holder.rs | aries/agents/aries-vcx-agent/src/handlers/holder.rs | use std::sync::Arc;
use aries_vcx::{
did_parser_nom::Did,
handlers::issuance::holder::Holder,
messages::{
msg_fields::protocols::cred_issuance::v1::{
issue_credential::IssueCredentialV1, offer_credential::OfferCredentialV1,
propose_credential::ProposeCredentialV1,
},... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/verifier.rs | aries/agents/aries-vcx-agent/src/handlers/verifier.rs | use std::sync::Arc;
use anoncreds_types::data_types::messages::pres_request::PresentationRequest;
use aries_vcx::{
handlers::proof_presentation::verifier::Verifier,
messages::{
msg_fields::protocols::present_proof::v1::{
present::PresentationV1, propose::ProposePresentationV1,
},
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/issuer.rs | aries/agents/aries-vcx-agent/src/handlers/issuer.rs | use std::sync::Arc;
use aries_vcx::{
handlers::{issuance::issuer::Issuer, util::OfferInfo},
messages::{
msg_fields::protocols::cred_issuance::v1::{
ack::AckCredentialV1, propose_credential::ProposeCredentialV1,
request_credential::RequestCredentialV1,
},
AriesMes... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/handlers/credential_definition.rs | aries/agents/aries-vcx-agent/src/handlers/credential_definition.rs | use std::sync::{Arc, Mutex};
use anoncreds_types::data_types::identifiers::schema_id::SchemaId;
use aries_vcx::{common::primitives::credential_definition::CredentialDef, did_parser_nom::Did};
use aries_vcx_anoncreds::anoncreds::anoncreds::Anoncreds;
use aries_vcx_ledger::ledger::indy_vdr_ledger::{DefaultIndyLedgerRead... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/agent/agent_struct.rs | aries/agents/aries-vcx-agent/src/agent/agent_struct.rs | use std::sync::Arc;
use aries_vcx_anoncreds::anoncreds::anoncreds::Anoncreds;
use aries_vcx_ledger::ledger::indy_vdr_ledger::{DefaultIndyLedgerRead, DefaultIndyLedgerWrite};
use aries_vcx_wallet::wallet::base_wallet::BaseWallet;
use crate::handlers::{
connection::ServiceConnections, credential_definition::Service... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/agent/mod.rs | aries/agents/aries-vcx-agent/src/agent/mod.rs | mod agent_struct;
mod init;
pub use agent_struct::Agent;
pub use init::{build_askar_wallet, WalletInitConfig};
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/agents/aries-vcx-agent/src/agent/init.rs | aries/agents/aries-vcx-agent/src/agent/init.rs | use std::sync::Arc;
use aries_vcx::{
common::ledger::{
service_didsov::EndpointDidSov,
transactions::{add_new_did, write_endpoint},
},
did_doc::schema::service::typed::ServiceType,
did_parser_nom::Did,
global::settings::DEFAULT_LINK_SECRET_ALIAS,
};
use aries_vcx_anoncreds::{
se... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx/src/lib.rs | aries/aries_vcx/src/lib.rs | #![allow(clippy::result_large_err)]
#![allow(clippy::large_enum_variant)]
#![allow(clippy::diverging_sub_expression)]
//this is needed for some large json macro invocations
#![recursion_limit = "128"]
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
#[macro_use]
extern crate serde;
#[macro_use]... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx/src/transport.rs | aries/aries_vcx/src/transport.rs | use async_trait::async_trait;
use url::Url;
use crate::errors::error::VcxResult;
/// Trait used for implementing a mechanism to send a message, used by
/// [`crate::protocols::connection::Connection`].
#[async_trait]
pub trait Transport: Send + Sync {
async fn send_message(&self, msg: Vec<u8>, service_endpoint: &... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx/src/global/settings.rs | aries/aries_vcx/src/global/settings.rs | pub static DEFAULT_GENESIS_PATH: &str = "genesis.txn";
pub static DEFAULT_LINK_SECRET_ALIAS: &str = "main";
pub static DEFAULT_DID: &str = "2hoqvcwupRTUNkXn6ArYzs";
pub static DEFAULT_WALLET_BACKUP_KEY: &str = "backup_wallet_key";
pub static DEFAULT_WALLET_KEY: &str = "8dvfYSt5d1taSd6yJdpjq4emkwsPDDLYxkNFysFD2cZY";
pub... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx/src/global/mod.rs | aries/aries_vcx/src/global/mod.rs | pub mod settings;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx/src/errors/mapping_wallet.rs | aries/aries_vcx/src/errors/mapping_wallet.rs | use aries_vcx_wallet::errors::error::VcxWalletError;
use super::error::{AriesVcxError, AriesVcxErrorKind};
impl From<VcxWalletError> for AriesVcxError {
fn from(value: VcxWalletError) -> Self {
match value {
VcxWalletError::DuplicateRecord(_) => Self::from_msg(
AriesVcxErrorKin... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/aries_vcx/src/errors/mapping_anoncreds.rs | aries/aries_vcx/src/errors/mapping_anoncreds.rs | use aries_vcx_anoncreds::errors::error::VcxAnoncredsError;
use super::error::{AriesVcxError, AriesVcxErrorKind};
impl From<VcxAnoncredsError> for AriesVcxError {
fn from(err: VcxAnoncredsError) -> Self {
match err {
VcxAnoncredsError::InvalidJson(_) => {
AriesVcxError::from_msg... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.