Skip to main content

Crate acdp_verify

Crate acdp_verify 

Source
Expand description

High-level body / publish-request verification — RFC-ACDP-0001 §5.11 (7-step algorithm).

This layer sits above validation, types, crypto, and did: it recomputes the content_hash, runs structural validation, resolves the producer DID, and verifies the signature envelope. The byte-level primitives (acdp_crypto::verify_ed25519 / acdp_crypto::verify_ecdsa_p256) live in crypto.

Functions§

verify_body_offline
Full offline body verification for did:key producers — works with --no-default-features (no HTTP stack, no resolver, no async).
verify_did_key_envelope
Verify a signature envelope whose key is a did:key — a pure function available without the client feature (no resolver, no network, no async).
verify_publish_request_signature_offline
Offline counterpart of [verify_publish_request_signature] for did:key producers — used by registries (and the bindings) to verify a publish request without the client feature. Assumes structural validation and content_hash recomputation have already run (e.g. via PublishValidator::validate_post_schema).