pub fn read_record(
proof: &[u8],
did: &str,
key: &CommitKey,
collection: &str,
rkey: &str,
) -> Result<Option<Value>, ProofError>Expand description
The record at collection/rkey in did’s repository, as proof
shows it, in its JSON form. None when the proof shows the repository
holds nothing there.
key must come from did’s own DID document; see
SignedCommit::verify. The record’s $type must be collection.