Function ic_agent::lookup_value

source ·
pub fn lookup_value<P: LookupPath, Storage: AsRef<[u8]>>(
    tree: &Certificate<Storage>,
    path: P
) -> Result<&[u8], AgentError>
Expand description

Looks up a value in the certificate’s tree at the specified hash.

Returns the value if it was found; otherwise, errors with LookupPathAbsent, LookupPathUnknown, or LookupPathError.