vouch-core 4.2.0

Vouch Protocol canonical core: JCS canonicalization, Ed25519 + ML-DSA proofs, did:key/multikey, Data Integrity (eddsa-jcs-2022), credentials, delegation, revocation. One byte-exact implementation shared by every language SDK via WASM and UniFFI/C-FFI.
Documentation
//! Helpers shared by the integration tests.

/// True when this is a build without the `std` feature and `message` is one
/// of the refusals that build gives where it would need something only `std`
/// has: an OS random source, the system clock, gzip, or transcendental math.
/// A vector case that reaches one is skipped in that build; every other case
/// must still match the reference byte for byte.
#[allow(dead_code)]
pub fn needs_std(message: &str) -> bool {
    !cfg!(feature = "std")
        && [
            "needs the std feature",
            "no random source",
            "no system clock here",
        ]
        .iter()
        .any(|m| message.contains(m))
}

/// True when this is a build without the `std` feature and `message` is its
/// refusal of JSON nested past `vouch_core::nesting::NO_STD_MAX_NESTING`
/// (or a did:webvh log line past it). Vector cases built to test deeper
/// nesting are refused there, before anything recursive reads them.
#[allow(dead_code)]
pub fn past_no_std_nesting(message: &str) -> bool {
    !cfg!(feature = "std")
        && (message.contains("levels deep, the limit of the no_std build")
            || message.contains("a DID log line is nested too deeply"))
}