pub trait HoprDbResolverOperations {
// Required methods
fn resolve_packet_key<'life0, 'life1, 'async_trait>(
&'life0 self,
onchain_key: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<Option<OffchainPublicKey>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn resolve_chain_key<'life0, 'life1, 'async_trait>(
&'life0 self,
offchain_key: &'life1 OffchainPublicKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Address>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Trait for linking and resolving the corresponding OffchainPublicKey
and on-chain Address
.
Required Methods§
Sourcefn resolve_packet_key<'life0, 'life1, 'async_trait>(
&'life0 self,
onchain_key: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<Option<OffchainPublicKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_packet_key<'life0, 'life1, 'async_trait>(
&'life0 self,
onchain_key: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<Option<OffchainPublicKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Tries to resolve off-chain public key given the on-chain address
Sourcefn resolve_chain_key<'life0, 'life1, 'async_trait>(
&'life0 self,
offchain_key: &'life1 OffchainPublicKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Address>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_chain_key<'life0, 'life1, 'async_trait>(
&'life0 self,
offchain_key: &'life1 OffchainPublicKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Address>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Tries to resolve on-chain public key given the off-chain public key