Skip to main content

merkle_from_address

Function merkle_from_address 

Source
pub fn merkle_from_address(address: &str) -> Result<String, CasError>
Expand description

Resolve a legacy caller-supplied reconstruction address to the hex digest the underlying cas_serve::CasStore keys on.

Accepts either:

  • a legacy reconstruction CIDv1 string (b… base32 multibase) — decoded to its digest, or
  • a legacy bare hex merkle (40 or 64 hex chars) — returned lowercased.

A labeled manifest CID deliberately cannot be reduced to a merkle: it must be resolved through its persisted manifest so the label binding is verified.