Skip to main content

parse_log_id

Function parse_log_id 

Source
pub fn parse_log_id(log_id: &str) -> Result<(&str, &str), AcdpError>
Expand description

Split a log_id into (registry_did, instance) per RFC-ACDP-0012 §6: "<registry_did>/log/<instance>", where <registry_did> is a did:web DID and <instance> matches [a-z0-9-]{1,32}.