Function ic_agent::lookup_value
source · [−]pub fn lookup_value<'a, P>(
certificate: &'a Certificate<'a>,
path: P
) -> Result<&'a [u8], AgentError> where
for<'p> &'p P: IntoIterator<Item = &'p Label>,
P: Into<Vec<Label>>,
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
.