oas-attestation (Rust)
W3C Verifiable Credential attestation support for the Open Agent Specification (OAS)
Purpose
W3C Verifiable Credential attestation support for the Open Agent Specification (OAS)
Source contract
| Field | Value |
|---|---|
| Package | oas-attestation |
| Version | 1.1.1 |
| Language | Rust |
| Runtime floor | 1.81 |
| Manifest | oas/oas/oas-attestation/Cargo.toml |
| Distribution | Source package; registry publication not verified |
Manifest SHA-256: 1502b03262905663e90423d3c124634458fcdec46fe64801328ea5dec143866e. The recorded Git revision identifies the containing repository; the manifest and entry-point hashes identify this working-tree snapshot.
Integration
Use the package root above from an authorized source checkout. Preserve sibling dependencies and their version/feature requirements. Install the runtime and compile the selected package before using its generated artifacts. The task guide describes configuration, trust boundaries, and error behavior. Test/conformance and deployment packages are supporting tools, not interchangeable production identity providers.
Exported entry points
The declarations below are extracted from the named entry files. This is a navigable source reference, not compiler-generated documentation of every transitive module. Feature gates and runtime requirements still apply. Private implementation files are not promoted to public APIs merely because they contain a public declaration.
oas/oas/oas-attestation/src/lib.rs
Source SHA-256: 7effa9fd9902e4f2a6dfbb5e56081f02fd2f4eb2f75299648ce58a5cb9c64078.
pub mod credential;
pub mod data_integrity_2025;
pub mod error;
pub mod lineage_vc;
pub mod oid4vp;
pub mod presentation;
pub mod proof_formats;
pub mod sd_jwt_vc;
pub mod sign;
pub mod signer;
pub mod types;
pub mod vc_jose;
pub mod verify;
pub use credential::ContextMode;
pub use data_integrity_2025::{
algorithm_to_cryptosuite, cryptosuite_to_algorithm, sign_credential_data_integrity,
verify_credential_data_integrity, CRYPTOSUITE_BBS_2023, CRYPTOSUITE_ECDSA_2019,
CRYPTOSUITE_EDDSA_2022, DATA_INTEGRITY_PROOF_TYPE,
};
pub use error::AttestationError;
pub use lineage_vc::{
lineage_proof_from_credential, lineage_proof_to_credential, LineageAttestationContext,
LineageAttestationData, LineageRootKind,
};
pub use oid4vp::{
create_authorization_request, create_oid4vp_response, verify_oid4vp_response,
AuthorizationRequest, Constraints, DescriptorMap, InputDescriptor, InputField, Oid4vpResponse,
PresentationDefinition, PresentationSubmission,
};
pub use presentation::{
is_authority_bearing, sign_presentation, verify_presentation,
verify_presentation_holder_binding, verify_presentation_holder_binding_with_lineage,
verify_presentation_holder_binding_with_resolved_lineage, OasPresentation, PresentationProof,
};
pub use proof_formats::{Ed25519Signature2020Format, ProofFormat, ProofFormatId};
pub use sd_jwt_vc::{
present_sd_jwt_vc, sign_credential_sd_jwt_vc, verify_sd_jwt_vc, Disclosure, SdJwtVc,
SdJwtVcHeader, SdJwtVcPayload, SdJwtVcSignOptions,
};
pub use signer::{OasKeyPairSigner, OasKeyPairVerifier, Signer, Verifier, ALG_EDDSA};
pub use vc_jose::{
parse_jwt_vc, sign_credential_jwt_vc, verify_jwt_vc, JwtVc, JwtVcHeader, JwtVcPayload,
JwtVcSignOptions,
};Module signatures and options
Browse the declared public source modules. This includes signatures, struct fields, enums, traits, method declarations, source comments and conditional attributes.