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/did_core/did_methods/did_jwk/src/lib.rs | did_core/did_methods/did_jwk/src/lib.rs | use std::fmt::{self, Display};
use base64::{
alphabet,
engine::{DecodePaddingMode, GeneralPurpose, GeneralPurposeConfig},
Engine,
};
use did_doc::schema::types::jsonwebkey::JsonWebKey;
use did_parser_nom::Did;
use error::DidJwkError;
use public_key::{Key, KeyType};
use serde::{de, Deserialize, Deserializer... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_jwk/src/error.rs | did_core/did_methods/did_jwk/src/error.rs | use thiserror::Error;
#[derive(Debug, Error)]
pub enum DidJwkError {
#[error("DID method not supported: {0}")]
MethodNotSupported(String),
#[error("Base64 encoding error: {0}")]
Base64Error(#[from] base64::DecodeError),
#[error("Serde JSON error: {0}")]
SerdeJsonError(#[from] serde_json::Error)... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_jwk/src/resolver.rs | did_core/did_methods/did_jwk/src/resolver.rs | use async_trait::async_trait;
use did_doc::schema::{
did_doc::DidDocument,
verification_method::{PublicKeyField, VerificationMethod, VerificationMethodType},
};
use did_parser_nom::{Did, DidUrl};
use did_resolver::{
error::GenericError,
traits::resolvable::{resolution_output::DidResolutionOutput, DidRes... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_jwk/tests/resolution.rs | did_core/did_methods/did_jwk/tests/resolution.rs | use did_doc::schema::did_doc::DidDocument;
use did_jwk::resolver::DidJwkResolver;
use did_parser_nom::Did;
use did_resolver::traits::resolvable::DidResolvable;
use serde_json::json;
// https://github.com/quartzjer/did-jwk/blob/main/spec.md#p-256
#[tokio::test]
async fn test_p256_spec_vector_resolution() {
let did ... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/cheqd_proto_gen/src/main.rs | did_core/did_methods/did_cheqd/cheqd_proto_gen/src/main.rs | //! Binary for re-generating the cheqd proto types
fn main() -> Result<(), Box<dyn std::error::Error>> {
let crate_dir = env!("CARGO_MANIFEST_DIR").to_string();
tonic_build::configure()
.build_server(false)
.out_dir(crate_dir.clone() + "/../src/proto")
.compile_protos(
&[
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/lib.rs | did_core/did_methods/did_cheqd/src/lib.rs | pub mod error;
pub mod proto;
pub mod resolution;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/proto/google.api.rs | did_core/did_methods/did_cheqd/src/proto/google.api.rs | // This file is @generated by prost-build.
/// Defines the HTTP configuration for an API service. It contains a list of
/// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
/// to one or more HTTP REST API methods.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Http {
/// A li... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/proto/cosmos.base.query.v1beta1.rs | did_core/did_methods/did_cheqd/src/proto/cosmos.base.query.v1beta1.rs | // This file is @generated by prost-build.
/// PageRequest is to be embedded in gRPC request messages for efficient
/// pagination. Ex:
///
/// message SomeRequest {
/// Foo some_parameter = 1;
/// PageRequest pagination = 2;
/// }
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PageReq... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/proto/mod.rs | did_core/did_methods/did_cheqd/src/proto/mod.rs | //! module structure wrapper over the generated proto types
pub mod cheqd {
pub mod did {
pub mod v2 {
include!("cheqd.did.v2.rs");
}
}
pub mod resource {
pub mod v2 {
include!("cheqd.resource.v2.rs");
}
}
}
pub mod cosmos {
pub mod base {
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/proto/cheqd.did.v2.rs | did_core/did_methods/did_cheqd/src/proto/cheqd.did.v2.rs | // This file is @generated by prost-build.
/// DidDoc defines a DID Document, as defined in the DID Core specification.
/// Documentation: <https://www.w3.org/TR/did-core/>
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DidDoc {
/// context is a list of URIs used to identify the context of the DID documen... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/proto/cheqd.resource.v2.rs | did_core/did_methods/did_cheqd/src/proto/cheqd.resource.v2.rs | // This file is @generated by prost-build.
/// Resource stores the contents of a DID-Linked Resource
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Resource {
/// bytes is the raw data of the Resource
#[prost(bytes = "vec", tag = "1")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
/// Metadata stores ... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/error/mod.rs | did_core/did_methods/did_cheqd/src/error/mod.rs | use parsing::ParsingErrorSource;
use thiserror::Error;
pub mod parsing;
pub type DidCheqdResult<T> = Result<T, DidCheqdError>;
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum DidCheqdError {
#[error("DID method not supported: {0}")]
MethodNotSupported(String),
#[error("Cheqd network not supported: {0}... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/error/parsing.rs | did_core/did_methods/did_cheqd/src/error/parsing.rs | use did_resolver::{did_doc::schema::types::uri::UriWrapperError, did_parser_nom};
use thiserror::Error;
use super::DidCheqdError;
#[derive(Error, Debug)]
pub enum ParsingErrorSource {
#[error("DID document parsing error: {0}")]
DidDocumentParsingError(#[from] did_parser_nom::ParseError),
#[error("DID docu... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/resolution/mod.rs | did_core/did_methods/did_cheqd/src/resolution/mod.rs | pub mod resolver;
pub mod transformer;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/resolution/resolver.rs | did_core/did_methods/did_cheqd/src/resolution/resolver.rs | use std::{cmp::Ordering, collections::HashMap};
use async_trait::async_trait;
use bytes::Bytes;
use chrono::{DateTime, Utc};
use did_resolver::{
did_doc::schema::did_doc::DidDocument,
did_parser_nom::{Did, DidUrl},
error::GenericError,
shared_types::{
did_document_metadata::DidDocumentMetadata,... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/src/resolution/transformer.rs | did_core/did_methods/did_cheqd/src/resolution/transformer.rs | use std::str::FromStr;
use chrono::{DateTime, Utc};
use did_resolver::{
did_doc::schema::{
contexts,
did_doc::DidDocument,
service::Service,
types::uri::Uri,
utils::OneOrList,
verification_method::{PublicKeyField, VerificationMethod, VerificationMethodType},
},
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_cheqd/tests/resolution.rs | did_core/did_methods/did_cheqd/tests/resolution.rs | use did_cheqd::resolution::resolver::{DidCheqdResolver, DidCheqdResolverConfiguration};
use did_resolver::{did_parser_nom::Did, traits::resolvable::DidResolvable};
use serde_json::{json, Value};
#[tokio::test]
async fn test_resolve_known_mainnet_did_vector() {
// sample from https://dev.uniresolver.io/
let did... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_key/src/lib.rs | did_core/did_methods/did_key/src/lib.rs | pub mod error;
use core::fmt;
use std::fmt::Display;
use did_parser_nom::Did;
use error::DidKeyError;
use public_key::Key;
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
/// Represents did:key where the DID ID is public key itself
/// See the spec: https://w3c-ccg.github.io/did-method-key/
#[deri... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_key/src/error.rs | did_core/did_methods/did_key/src/error.rs | use thiserror::Error;
#[derive(Debug, Error)]
pub enum DidKeyError {
#[error("Public key error: {0}")]
PublicKeyError(#[from] public_key::PublicKeyError),
#[error("DID parser error: {0}")]
DidParserError(#[from] did_parser_nom::ParseError),
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/lib.rs | did_core/did_methods/did_peer/src/lib.rs | extern crate display_as_json;
pub mod error;
pub mod helpers;
pub mod peer_did;
pub mod resolver;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/helpers.rs | did_core/did_methods/did_peer/src/helpers.rs | use std::collections::HashMap;
use did_doc::error::DidDocumentBuilderError;
use serde::Serialize;
use serde_json::Value;
pub fn convert_to_hashmap<T: Serialize>(
value: &T,
) -> Result<HashMap<String, Value>, DidDocumentBuilderError> {
let serialized_value = serde_json::to_value(value)?;
match serialized... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/error.rs | did_core/did_methods/did_peer/src/error.rs | use std::convert::Infallible;
use did_doc::schema::{
types::uri::UriWrapperError,
verification_method::{error::KeyDecodingError, VerificationMethodType},
};
use crate::peer_did::numalgos::kind::NumalgoKind;
#[derive(Debug, thiserror::Error)]
pub enum DidPeerError {
#[error("DID parser error: {0}")]
D... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/parse.rs | did_core/did_methods/did_peer/src/peer_did/parse.rs | use did_parser_nom::Did;
use crate::{error::DidPeerError, peer_did::numalgos::kind::NumalgoKind};
pub fn parse_numalgo(did: &Did) -> Result<NumalgoKind, DidPeerError> {
log::info!("did.id() >> {}", did.id());
did.id()
.chars()
.next()
.ok_or_else(|| {
DidPeerError::DidValid... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/mod.rs | did_core/did_methods/did_peer/src/peer_did/mod.rs | pub mod numalgos;
mod parse;
pub mod generic;
use core::fmt;
use std::{fmt::Display, marker::PhantomData};
use did_doc::schema::did_doc::DidDocument;
use did_parser_nom::Did;
use serde::{
de::{self, Visitor},
Deserialize, Deserializer, Serialize, Serializer,
};
use crate::{error::DidPeerError, peer_did::nu... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/generic.rs | did_core/did_methods/did_peer/src/peer_did/generic.rs | use std::fmt::Display;
use did_parser_nom::Did;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use super::PeerDid;
use crate::{
error::DidPeerError,
peer_did::{
numalgos::{kind::NumalgoKind, numalgo2::Numalgo2, numalgo3::Numalgo3, numalgo4::Numalgo4},
parse::parse_numalgo,
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/kind.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/kind.rs | use std::fmt::Display;
use crate::{
error::DidPeerError,
peer_did::numalgos::{
numalgo0::Numalgo0, numalgo1::Numalgo1, numalgo2::Numalgo2, numalgo3::Numalgo3,
numalgo4::Numalgo4, Numalgo,
},
};
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum NumalgoKind {
InceptionKeyWithoutDoc(Numal... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/mod.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/mod.rs | pub mod kind;
pub mod numalgo0;
pub mod numalgo1;
pub mod numalgo2;
pub mod numalgo3;
pub mod numalgo4;
use did_doc::schema::did_doc::DidDocument;
use did_parser_nom::Did;
use crate::{
error::DidPeerError,
peer_did::{parse::parse_numalgo, PeerDid},
resolver::options::PublicKeyEncoding,
};
pub trait Numal... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/traits.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/traits.rs | use did_doc::schema::did_doc::DidDocument;
use did_parser_nom::Did;
use crate::{
error::DidPeerError,
peer_did::{parse::parse_numalgo, validate::validate, PeerDid},
peer_did_resolver::options::PublicKeyEncoding,
};
pub trait Numalgo: Sized + Default {
const NUMALGO_CHAR: char;
fn parse<T>(did: T)... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo0/mod.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo0/mod.rs | use crate::peer_did::numalgos::Numalgo;
#[derive(Clone, Copy, Default, Debug, PartialEq)]
pub struct Numalgo0;
impl Numalgo for Numalgo0 {
const NUMALGO_CHAR: char = '0';
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/helpers.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/helpers.rs | use base64::{engine::general_purpose::STANDARD_NO_PAD, Engine};
use did_doc::schema::did_doc::DidDocument;
use did_parser_nom::Did;
use public_key::Key;
use crate::{
error::DidPeerError,
peer_did::numalgos::numalgo2::{
purpose::ElementPurpose,
service_abbreviation::{deabbreviate_service, Servic... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/verification_method.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/verification_method.rs | use did_doc::schema::verification_method::{
PublicKeyField, VerificationMethod, VerificationMethodType,
};
use did_parser_nom::{Did, DidUrl};
use public_key::{Key, KeyType};
use crate::{error::DidPeerError, resolver::options::PublicKeyEncoding};
pub fn get_verification_methods_by_key(
key: &Key,
did: &Did... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/purpose.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/purpose.rs | use std::fmt::Display;
use crate::error::DidPeerError;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ElementPurpose {
Assertion,
Encryption,
Verification,
CapabilityInvocation,
CapabilityDelegation,
Service,
}
impl Display for ElementPurpose {
fn fmt(&self, f: &mut std::fmt::Forma... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/mod.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/mod.rs | use did_doc::schema::did_doc::DidDocument;
use encoding::{append_encoded_key_segments, append_encoded_service_segment};
use sha2::{Digest, Sha256};
use crate::{
error::DidPeerError,
helpers::MULTIHASH_SHA2_256,
peer_did::{
numalgos::{numalgo2::helpers::diddoc_from_peerdid2_elements, numalgo3::Numal... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/service_abbreviation.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/service_abbreviation.rs | use std::{collections::HashMap, str::FromStr};
use did_doc::schema::{
service::{
service_accept_type::ServiceAcceptType, service_key_kind::ServiceKeyKind,
typed::ServiceType, Service,
},
types::uri::Uri,
utils::OneOrList,
};
use serde::{Deserialize, Serialize};
use serde_json::{from_val... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/encoding.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo2/encoding.rs | use std::cmp::Ordering;
use base64::{engine::general_purpose::STANDARD_NO_PAD, Engine};
use did_doc::schema::{
did_doc::DidDocument,
verification_method::{VerificationMethod, VerificationMethodKind},
};
use public_key::Key;
use crate::{
error::DidPeerError,
peer_did::numalgos::numalgo2::{
purp... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo1/mod.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo1/mod.rs | use crate::peer_did::numalgos::Numalgo;
#[derive(Clone, Copy, Default, Debug, PartialEq)]
pub struct Numalgo1;
impl Numalgo for Numalgo1 {
const NUMALGO_CHAR: char = '1';
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo4/mod.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo4/mod.rs | use did_doc::schema::did_doc::DidDocument;
use did_parser_nom::Did;
use sha2::{Digest, Sha256};
use crate::{
error::DidPeerError,
helpers::{MULTICODEC_JSON_VARINT, MULTIHASH_SHA2_256},
peer_did::{
numalgos::{numalgo4::construction_did_doc::DidPeer4ConstructionDidDocument, Numalgo},
PeerDid,... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo4/construction_did_doc.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo4/construction_did_doc.rs | use std::collections::HashMap;
use did_doc::schema::{
did_doc::DidDocument,
service::Service,
types::uri::Uri,
verification_method::{
PublicKeyField, VerificationMethod, VerificationMethodKind, VerificationMethodType,
},
};
use did_parser_nom::DidUrl;
use display_as_json::Display;
use serde... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo3/mod.rs | did_core/did_methods/did_peer/src/peer_did/numalgos/numalgo3/mod.rs | use did_doc::schema::did_doc::DidDocument;
use crate::{
error::DidPeerError,
peer_did::{
numalgos::{numalgo2::Numalgo2, Numalgo},
FromDidDoc, PeerDid,
},
};
#[derive(Clone, Copy, Default, Debug, PartialEq)]
pub struct Numalgo3;
impl Numalgo for Numalgo3 {
const NUMALGO_CHAR: char = '3... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/resolver/options.rs | did_core/did_methods/did_peer/src/resolver/options.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)]
pub enum PublicKeyEncoding {
Multibase,
Base58,
}
#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExtraFieldsOptions {
public_key_encoding: PublicKeyEncoding,
}
impl Default f... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/src/resolver/mod.rs | did_core/did_methods/did_peer/src/resolver/mod.rs | use async_trait::async_trait;
use did_doc::schema::did_doc::DidDocument;
use did_parser_nom::Did;
use did_resolver::{
error::GenericError,
traits::resolvable::{
resolution_metadata::DidResolutionMetadata, resolution_output::DidResolutionOutput,
DidResolvable,
},
};
use serde::{Deserialize, S... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/resolve_positive.rs | did_core/did_methods/did_peer/tests/resolve_positive.rs | mod fixtures;
use did_doc::schema::did_doc::DidDocument;
use did_peer::resolver::{options::PublicKeyEncoding, PeerDidResolutionOptions, PeerDidResolver};
use did_resolver::traits::resolvable::DidResolvable;
use pretty_assertions::assert_eq;
use tokio::test;
use crate::fixtures::{
basic::{DID_DOC_BASIC, PEER_DID_N... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/resolve_negative.rs | did_core/did_methods/did_peer/tests/resolve_negative.rs | mod fixtures;
use did_peer::{
error::DidPeerError,
resolver::{options::PublicKeyEncoding, PeerDidResolutionOptions, PeerDidResolver},
};
use did_resolver::traits::resolvable::DidResolvable;
use tokio::test;
async fn resolve_error(peer_did: &str) -> DidPeerError {
let options = PeerDidResolutionOptions {
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/generate.rs | did_core/did_methods/did_peer/tests/generate.rs | mod fixtures;
use did_doc::schema::did_doc::DidDocument;
use did_peer::peer_did::{
numalgos::{numalgo2::Numalgo2, numalgo3::Numalgo3},
PeerDid,
};
use pretty_assertions::assert_eq;
use crate::fixtures::{
basic::{DID_DOC_BASIC, PEER_DID_NUMALGO_2_BASIC, PEER_DID_NUMALGO_3_BASIC},
no_routing_keys::{
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/fixtures/no_services.rs | did_core/did_methods/did_peer/tests/fixtures/no_services.rs | pub static PEER_DID_NUMALGO_2_NO_SERVICES: &str =
"did:peer:2.Ez6LSpSrLxbAhg2SHwKk7kwpsH7DM7QjFS5iK6qP87eViohud.\
Vz6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V";
pub static PEER_DID_NUMALGO_3_NO_SERVICES: &str =
"did:peer:3zQmdysQimott3jS93beGPVX8sTRSRFJWt1FsihPcSy9kZfB";
pub static DID_DOC_NO_SERVIC... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/fixtures/mod.rs | did_core/did_methods/did_peer/tests/fixtures/mod.rs | #![allow(dead_code)]
pub mod basic;
pub mod multiple_services;
pub mod no_routing_keys;
pub mod no_services;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/fixtures/basic.rs | did_core/did_methods/did_peer/tests/fixtures/basic.rs | pub static PEER_DID_NUMALGO_2_BASIC: &str = "did:peer:2\
.Ez6LSbysY2xFMRpGMhb7tFTLMpeuPRaqaWM1yECx2AtzE3KCc\
.Vz6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V\
.Vz6MkgoLTnTypo3tDRwCkZXSccTPHRLhF4ZnjhueYAFpEX6vg\
.SeyJpZCI6IiNzZXJ2aWNlLTAiLCJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9lbmRwb2ludCIsInIiOlsiZGlkOmV4YW1wb... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/fixtures/multiple_services.rs | did_core/did_methods/did_peer/tests/fixtures/multiple_services.rs | pub static PEER_DID_NUMALGO_2_MULTIPLE_SERVICES: &str = "did:peer:2\
.Ez6LSpSrLxbAhg2SHwKk7kwpsH7DM7QjFS5iK6qP87eViohud\
.Vz6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V\
.SW3sidCI6ImRtIiwicyI6Imh0dHBzOi8vZXhhbXBsZS5jb20vZW5kcG9pbnQiLCJyIjpbImRpZDpleGFtcGxlOnNvbWVtZWRpYXRvciNzb21la2V5Il19LHsidCI6ImV4YW1wbGUiLCJzIjoia... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/tests/fixtures/no_routing_keys.rs | did_core/did_methods/did_peer/tests/fixtures/no_routing_keys.rs | pub static PEER_DID_NUMALGO_2_NO_ROUTING_KEYS: &str =
"did:peer:2.Ez6LSbysY2xFMRpGMhb7tFTLMpeuPRaqaWM1yECx2AtzE3KCc.\
Vz6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V.\
Vz6MkgoLTnTypo3tDRwCkZXSccTPHRLhF4ZnjhueYAFpEX6vg.\
SeyJpZCI6IiNzZXJ2aWNlLTAiLCJ0IjoiZG0iLCJzIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9lbmRwb2... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_methods/did_peer/examples/demo.rs | did_core/did_methods/did_peer/examples/demo.rs | use std::{collections::HashMap, error::Error};
use did_doc::schema::{
did_doc::DidDocument,
service::{typed::ServiceType, Service},
types::uri::Uri,
utils::OneOrList,
verification_method::{PublicKeyField, VerificationMethod, VerificationMethodType},
};
use did_parser_nom::{Did, DidUrl};
use did_pee... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/lib.rs | did_core/did_resolver/src/lib.rs | pub extern crate did_doc;
pub extern crate did_parser_nom;
pub mod error;
pub mod shared_types;
pub mod traits;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/error.rs | did_core/did_resolver/src/error.rs | use std::error::Error;
pub type GenericError = Box<dyn Error + Send + Sync + 'static>;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/shared_types/media_type.rs | did_core/did_resolver/src/shared_types/media_type.rs | use std::fmt::{self, Display, Formatter};
use serde::Deserialize;
#[derive(Debug, Clone, PartialEq, Deserialize)]
#[non_exhaustive]
pub enum MediaType {
DidJson,
DidLdJson,
}
impl Display for MediaType {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
match self {
MediaType::Did... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/shared_types/did_document_metadata.rs | did_core/did_resolver/src/shared_types/did_document_metadata.rs | use std::collections::HashSet;
use chrono::{DateTime, Utc};
use did_parser_nom::Did;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Default)]
#[serde(default)]
#[serde(rename_all = "camelCase")]
pub struct DidDocumentMetadata {
#[serde(skip_serializing_if = "Option:... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/shared_types/did_resource.rs | did_core/did_resolver/src/shared_types/did_resource.rs | use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use serde_json::Value;
use typed_builder::TypedBuilder;
/// https://w3c-ccg.github.io/DID-Linked-Resources/
#[derive(Clone, Debug, PartialEq, Default)]
pub struct DidResource {
pub content: Vec<u8>,
pub metadata: DidResourceMetadata,
}
/// http... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/shared_types/mod.rs | did_core/did_resolver/src/shared_types/mod.rs | pub mod did_document_metadata;
pub mod did_resource;
pub mod media_type;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/mod.rs | did_core/did_resolver/src/traits/mod.rs | pub mod dereferenceable;
pub mod resolvable;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/dereferenceable/dereferencing_output.rs | did_core/did_resolver/src/traits/dereferenceable/dereferencing_output.rs | use std::io::Read;
use super::dereferencing_metadata::DidDereferencingMetadata;
use crate::shared_types::did_document_metadata::DidDocumentMetadata;
pub struct DidDereferencingOutput<R: Read + Send + Sync> {
dereferencing_metadata: DidDereferencingMetadata,
content_stream: R,
content_metadata: DidDocument... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/dereferenceable/dereferencing_error.rs | did_core/did_resolver/src/traits/dereferenceable/dereferencing_error.rs | use std::{error::Error, fmt::Display};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(rename_all = "camelCase")]
pub enum DidDereferencingError {
InvalidDid,
NotFound,
}
impl Display for DidDereferencingError {
fn fmt(&self, f: &mut std::fmt::Forma... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/dereferenceable/dereferencing_options.rs | did_core/did_resolver/src/traits/dereferenceable/dereferencing_options.rs | use crate::shared_types::media_type::MediaType;
#[derive(Debug, Clone, PartialEq, Default)]
pub struct DidDereferencingOptions {
accept: Option<MediaType>,
}
impl DidDereferencingOptions {
pub fn new() -> Self {
Self { accept: None }
}
pub fn set_accept(mut self, accept: MediaType) -> Self {
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/dereferenceable/mod.rs | did_core/did_resolver/src/traits/dereferenceable/mod.rs | pub mod dereferencing_error;
pub mod dereferencing_metadata;
pub mod dereferencing_options;
pub mod dereferencing_output;
use std::io::Read;
use async_trait::async_trait;
use did_parser_nom::DidUrl;
use self::{
dereferencing_options::DidDereferencingOptions, dereferencing_output::DidDereferencingOutput,
};
use c... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/dereferenceable/dereferencing_metadata.rs | did_core/did_resolver/src/traits/dereferenceable/dereferencing_metadata.rs | use super::dereferencing_error::DidDereferencingError;
#[derive(Debug, Clone, PartialEq, Default)]
pub struct DidDereferencingMetadata {
content_type: Option<String>,
error: Option<DidDereferencingError>,
}
impl DidDereferencingMetadata {
pub fn builder() -> DidDereferencingMetadataBuilder {
DidDe... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/resolvable/resolution_error.rs | did_core/did_resolver/src/traits/resolvable/resolution_error.rs | use std::{error::Error, fmt::Display};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(rename_all = "camelCase")]
pub enum DidResolutionError {
InvalidDid,
NotFound,
RepresentationNotSupported,
MethodNotSupported,
InternalError,
InvalidPu... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/resolvable/mod.rs | did_core/did_resolver/src/traits/resolvable/mod.rs | pub mod resolution_error;
pub mod resolution_metadata;
pub mod resolution_output;
use async_trait::async_trait;
use did_parser_nom::Did;
use self::resolution_output::DidResolutionOutput;
use crate::error::GenericError;
#[async_trait]
pub trait DidResolvable {
type DidResolutionOptions: Default;
async fn res... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/resolvable/resolution_output.rs | did_core/did_resolver/src/traits/resolvable/resolution_output.rs | use did_doc::schema::did_doc::DidDocument;
use serde::{Deserialize, Serialize};
use super::resolution_metadata::DidResolutionMetadata;
use crate::shared_types::did_document_metadata::DidDocumentMetadata;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct DidResolu... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver/src/traits/resolvable/resolution_metadata.rs | did_core/did_resolver/src/traits/resolvable/resolution_metadata.rs | use serde::{Deserialize, Serialize};
use super::resolution_error::DidResolutionError;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Default)]
pub struct DidResolutionMetadata {
content_type: Option<String>,
error: Option<DidResolutionError>,
}
impl DidResolutionMetadata {
pub fn builder() -> ... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver_registry/src/lib.rs | did_core/did_resolver_registry/src/lib.rs | pub mod error;
use std::collections::HashMap;
use async_trait::async_trait;
use did_resolver::{
did_doc::schema::did_doc::DidDocument,
did_parser_nom::Did,
error::GenericError,
traits::resolvable::{resolution_output::DidResolutionOutput, DidResolvable},
};
use error::DidResolverRegistryError;
use serd... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_resolver_registry/src/error.rs | did_core/did_resolver_registry/src/error.rs | use std::error::Error;
#[derive(Debug)]
pub enum DidResolverRegistryError {
UnsupportedMethod,
UnqualifiedDid,
}
impl std::fmt::Display for DidResolverRegistryError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
DidResolverRegistryError::UnsupportedMeth... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/public_key/src/key.rs | did_core/public_key/src/key.rs | use std::fmt::Display;
use serde::{Deserialize, Serialize};
use super::KeyType;
use crate::error::PublicKeyError;
/// Represents raw public key data along with information about the key type
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Key {
key_type: KeyType,
key: Vec<u8>,
}
impl K... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/public_key/src/lib.rs | did_core/public_key/src/lib.rs | mod error;
#[cfg(feature = "jwk")]
mod jwk;
mod key;
mod key_type;
pub use error::PublicKeyError;
pub use key::Key;
pub use key_type::KeyType;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/public_key/src/jwk.rs | did_core/public_key/src/jwk.rs | use askar_crypto::{
alg::{AnyKey, AnyKeyCreate, BlsCurves, EcCurves, KeyAlg},
jwk::{FromJwk, ToJwk},
repr::ToPublicBytes,
};
use crate::{Key, KeyType, PublicKeyError};
impl Key {
pub fn from_jwk(jwk: &str) -> Result<Key, PublicKeyError> {
let askar_key: Box<AnyKey> =
FromJwk::from_... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/public_key/src/error.rs | did_core/public_key/src/error.rs | use std::error::Error;
use thiserror::Error;
use crate::KeyType;
#[derive(Debug, Error)]
pub enum PublicKeyError {
#[error("Base 64 decoding error")]
Base64DecodingError(#[from] base64::DecodeError),
#[error("Base 58 decoding error")]
Base58DecodingError(#[from] bs58::decode::Error),
#[error("Mul... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/public_key/src/key_type.rs | did_core/public_key/src/key_type.rs | use std::fmt::Display;
use serde::{Deserialize, Serialize};
use crate::error::PublicKeyError;
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum KeyType {
Ed25519,
Bls12381g1g2,
Bls12381g1,
Bls12381g2,
X25519,
P256,
P384,
P521,
}
impl KeyType {
const C_BLS1... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/lib.rs | did_core/did_parser_nom/src/lib.rs | mod did;
mod did_url;
mod error;
use std::ops::Range;
type DidRange = Range<usize>;
pub use did::Did;
pub use did_url::DidUrl;
pub use error::ParseError;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/error.rs | did_core/did_parser_nom/src/error.rs | use std::fmt;
#[derive(Debug)]
pub enum ParseError {
InvalidInput(&'static str),
ParserError(Box<dyn std::error::Error + 'static + Send + Sync>),
}
impl std::error::Error for ParseError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self {
ParseError::InvalidI... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did_url/mod.rs | did_core/did_parser_nom/src/did_url/mod.rs | mod parsing;
use std::{collections::HashMap, fmt::Display, str::FromStr};
use nom::combinator::all_consuming;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use self::parsing::{fragment_parser, parse_did_url};
use crate::{error::ParseError, Did, DidRange};
#[derive(Default, Debug, Clone, PartialEq)]... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did_url/parsing.rs | did_core/did_parser_nom/src/did_url/parsing.rs | use std::collections::HashMap;
use nom::{
branch::alt,
bytes::complete::{tag, take_while1},
character::complete::{char, one_of, satisfy},
combinator::{all_consuming, cut, opt, recognize, success},
multi::{many0, many1, separated_list0},
sequence::{preceded, separated_pair, tuple},
AsChar, I... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/mod.rs | did_core/did_parser_nom/src/did/mod.rs | pub(crate) mod parsing;
use std::{
convert::TryFrom,
fmt::{Display, Formatter},
str::FromStr,
};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use self::parsing::parse_did;
use crate::{error::ParseError, DidRange, DidUrl};
#[derive(Clone, PartialEq, Eq, Hash, Default)]
pub struct Did {
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/parsing/did_key.rs | did_core/did_parser_nom/src/did/parsing/did_key.rs | use nom::{
bytes::complete::{tag, take_while1},
character::complete::char,
combinator::{cut, fail, opt, recognize},
sequence::{delimited, tuple},
IResult,
};
use super::{DidPart, BASE58CHARS};
fn is_base58char(c: char) -> bool {
BASE58CHARS.contains(c)
}
// mb-value := z[a-km-zA-HJ-NP-Z... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/parsing/did_sov.rs | did_core/did_parser_nom/src/did/parsing/did_sov.rs | use nom::{
branch::alt,
bytes::complete::tag,
character::complete::{char, one_of},
combinator::{all_consuming, cut, opt, recognize},
multi::{many1, many_m_n},
sequence::{delimited, tuple},
IResult,
};
use super::{DidPart, BASE58CHARS};
use crate::did::parsing::did_core::idchar;
fn base58ch... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/parsing/did_peer_4.rs | did_core/did_parser_nom/src/did/parsing/did_peer_4.rs | use nom::{
bytes::complete::tag,
character::complete::char,
combinator::{cut, peek},
sequence::{delimited, tuple},
IResult,
};
use super::DidPart;
use crate::did::parsing::did_core::general_did_id;
fn did_peer_method(input: &str) -> IResult<&str, &str> {
delimited(char(':'), tag("peer"), char(... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/parsing/mod.rs | did_core/did_parser_nom/src/did/parsing/mod.rs | mod did_cheqd;
mod did_core;
mod did_key;
mod did_peer_4;
mod did_sov;
mod did_web;
use did_cheqd::parse_did_cheqd;
use nom::{
branch::alt,
combinator::{all_consuming, map},
IResult,
};
use self::{
did_core::parse_qualified_did,
did_key::parse_did_key,
did_sov::{parse_qualified_sovrin_did, par... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/parsing/did_web.rs | did_core/did_parser_nom/src/did/parsing/did_web.rs | use nom::{
bytes::complete::{tag, take_till},
character::complete::char,
combinator::{fail, opt},
sequence::{delimited, tuple},
IResult,
};
use super::DidPart;
pub(super) fn parse_did_web(input: &str) -> IResult<&str, DidPart> {
fn did_web_method(input: &str) -> IResult<&str, &str> {
d... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/parsing/did_core.rs | did_core/did_parser_nom/src/did/parsing/did_core.rs | // https://www.w3.org/TR/did-core/#did-syntax
use nom::{
branch::alt,
bytes::complete::{tag, take_while1},
character::complete::{alphanumeric1, char, satisfy},
combinator::recognize,
multi::{many0, many1},
sequence::{delimited, terminated, tuple},
AsChar, IResult,
};
use super::DidPart;
fn... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/src/did/parsing/did_cheqd.rs | did_core/did_parser_nom/src/did/parsing/did_cheqd.rs | //! https://docs.cheqd.io/product/architecture/adr-list/adr-001-cheqd-did-method#syntax-for-did-cheqd-method
use nom::{
branch::alt,
bytes::complete::tag,
character::complete::{alphanumeric1, char, one_of},
combinator::{cut, recognize},
multi::count,
sequence::{delimited, terminated, tuple},
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/lib.rs | did_core/did_parser_nom/tests/lib.rs | mod did;
mod did_url;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did_url/serde.rs | did_core/did_parser_nom/tests/did_url/serde.rs | use did_parser_nom::DidUrl;
use serde_test::{assert_tokens, Token};
const DID_URL: &str = "did:example:namespace:123456789abcdefghi/path?query=value#fragment";
#[test]
fn test_did_url_serde() {
assert_tokens(
&DidUrl::parse(DID_URL.to_string()).unwrap(),
&[Token::Str(DID_URL)],
);
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did_url/positive.rs | did_core/did_parser_nom/tests/did_url/positive.rs | use std::collections::HashMap;
use did_parser_nom::DidUrl;
macro_rules! test_cases_positive {
($($name:ident: $input:expr, $expected_did:expr, $expected_method:expr, $expected_namespace:expr, $expected_id:expr, $expected_path:expr, $expected_fragment:expr, $expected_queries:expr)*) => {
$(
#[t... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did_url/mod.rs | did_core/did_parser_nom/tests/did_url/mod.rs | mod negative;
mod positive;
mod serde;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did_url/negative.rs | did_core/did_parser_nom/tests/did_url/negative.rs | use did_parser_nom::DidUrl;
macro_rules! test_cases_negative {
($($name:ident: $input:expr)*) => {
$(
#[test]
fn $name() {
assert!(DidUrl::parse($input.to_string()).is_err());
}
)*
};
}
test_cases_negative! {
empty:
""
random_... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did/serde.rs | did_core/did_parser_nom/tests/did/serde.rs | use did_parser_nom::Did;
use serde_test::{assert_tokens, Token};
const DID: &str = "did:example:123456789abcdefghi";
#[test]
fn test_did_serde() {
assert_tokens(&Did::parse(DID.to_string()).unwrap(), &[Token::Str(DID)]);
}
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did/positive.rs | did_core/did_parser_nom/tests/did/positive.rs | use std::sync::Once;
use did_parser_nom::Did;
static TEST_LOGGING_INIT: Once = Once::new();
pub fn init_logger() {
TEST_LOGGING_INIT.call_once(|| {
let env = env_logger::Env::default().default_filter_or("info");
env_logger::init_from_env(env);
})
}
macro_rules! test_cases_positive {
($($... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did/mod.rs | did_core/did_parser_nom/tests/did/mod.rs | mod negative;
mod positive;
mod serde;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/did_core/did_parser_nom/tests/did/negative.rs | did_core/did_parser_nom/tests/did/negative.rs | use did_parser_nom::Did;
macro_rules! test_cases_negative {
($($name:ident: $input:expr)*) => {
$(
#[test]
fn $name() {
assert!(Did::parse($input.to_string()).is_err());
}
)*
};
}
test_cases_negative! {
empty:
""
random_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/misc/anoncreds_types/src/lib.rs | aries/misc/anoncreds_types/src/lib.rs | extern crate log;
#[macro_use]
extern crate serde;
#[cfg(test)]
#[macro_use]
extern crate serde_json;
#[doc(hidden)]
pub use anoncreds_clsignatures as cl;
#[macro_use]
mod error;
#[doc(hidden)]
pub use self::error::Result;
pub use self::error::{Error, ErrorKind};
pub mod utils;
pub mod data_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/misc/anoncreds_types/src/error.rs | aries/misc/anoncreds_types/src/error.rs | use std::{
error::Error as StdError,
fmt::{self, Display, Formatter},
};
use crate::cl::{Error as CryptoError, ErrorKind as CryptoErrorKind};
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ErrorKind {
Input,
InvalidState,
Unexpected,
... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/misc/anoncreds_types/src/utils/validation.rs | aries/misc/anoncreds_types/src/utils/validation.rs | use once_cell::sync::Lazy;
use regex::Regex;
// TODO: stricten the URI regex.
// Right now everything after the first colon is allowed,
// we might want to restrict this
pub static URI_IDENTIFIER: Lazy<Regex> =
Lazy::new(|| Regex::new(r"^[a-zA-Z0-9\+\-\.]+:.+$").unwrap());
/// base58 alpahet as defined in the [ba... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/misc/anoncreds_types/src/utils/mod.rs | aries/misc/anoncreds_types/src/utils/mod.rs | /// VCX utility additon
pub mod conversions;
pub mod query;
pub mod validation;
| rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | false |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/misc/anoncreds_types/src/utils/query.rs | aries/misc/anoncreds_types/src/utils/query.rs | use std::string;
use serde::{
de,
ser::{Serialize, Serializer},
Deserialize, Deserializer,
};
use serde_json::{self, json, Value as JsonValue};
/// An abstract query representation over a key and value type
#[derive(Debug, Hash, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum AbstractQuery<K, V> {
//... | rust | Apache-2.0 | 2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7 | 2026-01-04T20:24:59.602734Z | true |
openwallet-foundation/vcx | https://github.com/openwallet-foundation/vcx/blob/2d3034ed73ba8d49e0f72251b4c7cfb859a1efe7/aries/misc/anoncreds_types/src/utils/conversions.rs | aries/misc/anoncreds_types/src/utils/conversions.rs | use bitvec::bitvec;
use crate::data_types::{
identifiers::{issuer_id::IssuerId, rev_reg_def_id::RevocationRegistryDefinitionId},
ledger::{rev_reg_delta::RevocationRegistryDeltaValue, rev_status_list::RevocationStatusList},
};
/// Converts from a [RevocationRegistryDeltaValue] into a completed [RevocationStatu... | 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.