pub fn verify_identity(
identity: &AdapterIdentity,
reported_abi_version: u32,
reported_layout_hash: u32,
) -> Result<(), AdapterIdentityError>Expand description
Verifies a captured identity against this exact Rust crate build.
reported_abi_version and reported_layout_hash are separate adapter exports. Comparing them
prevents a stale or partially implemented adapter from satisfying the contract with a single
fabricated struct. The private C layout cannot be recomputed in Rust, so its non-zero identity
is authorized by the independently matched repository adapter-source digest.