Skip to main content

declared_handle

Function declared_handle 

Source
pub fn declared_handle(document: &Value) -> Option<String>
Expand description

The handle a DID document claims, normalized.

The first at:// entry only. That entry is the document’s claim; later entries are not. A membership test over the whole array would let an attacker’s document list a victim’s handle as a secondary entry and pass verification for it.