vcp-core 4.2.0

Value Context Protocol (VCP) core types and parsing
Documentation

vcp-core

vcp-core is the Rust reference library for Value Context Protocol identity, CSM-1, context, transport, trust, revocation, orchestration, and selected extension behavior.

Publication state: source-only candidate, version 4.2.0. This crate is not claimed to be available from crates.io until the canonical publication record contains a registry receipt.

Use from this workspace

[dependencies]
vcp-core = { path = "../VCP-SDK/rust/vcp-core" }
use vcp_core::{Csm1Code, VcpToken};

let identity = VcpToken::parse("family.safe.guide@1.2.0")?;
let profile = Csm1Code::parse("N5+F+E")?;
assert_eq!(identity.domain(), "family");
assert_eq!(profile.encode(), "N5+E+F");
# Ok::<(), vcp_core::VcpError>(())

Compatibility and features

The minimum supported Rust version is 1.87. The crate has no optional feature flags in this candidate. Native builds include the bounded HTTPS revocation transport. wasm32-unknown-unknown consumers should use the sibling vcp-wasm crate for the supported browser-facing surface.

Protocol compatibility and implementation coverage are recorded in compatibility policy and conformance coverage manifest. The VCP-Spec repository controls protocol semantics.

Security

Verification is relative to caller-provided trust anchors and policy. Network policy, durable replay state, key custody, audit retention, and deployment monitoring remain application responsibilities. Report suspected vulnerabilities using the private route in security policy.

Licence

MIT. See repository licence.