Skip to main content

named_handles

Function named_handles 

Source
pub fn named_handles(record: &Value) -> Vec<(String, String)>
Expand description

The handle record itself calls each account it mentions by, as (did, handle) pairs in the order they are first met.

A mention is a facet: an object holding a text string and a facets list, each facet a byte range of that text and features naming a DID. The span a feature’s facet covers, less its leading @, is the handle the writer used for that DID, when it is one. The writer chose it and nothing checks that the DID answers to it, so it is only ever used to tell the writer who their own record named. Like named_accounts, this reads the shape and never $type.