pub trait DataContractProvider: Send + Sync {
// Required method
fn as_contract_lookup_fn<'a>(
&'a self,
platform_version: &'a PlatformVersion,
) -> Box<ContractLookupFn<'a>>;
}Expand description
A trait that provides a function that can be used to look up a DataContract by its Identifier.
This trait is automatically implemented for any type that implements ContextProvider. It is used internally by the Drive proof verification functions to look up data contracts.
Required Methods§
Sourcefn as_contract_lookup_fn<'a>(
&'a self,
platform_version: &'a PlatformVersion,
) -> Box<ContractLookupFn<'a>>
fn as_contract_lookup_fn<'a>( &'a self, platform_version: &'a PlatformVersion, ) -> Box<ContractLookupFn<'a>>
Returns ContractLookupFn function that can be used to look up a DataContract by its Identifier.