We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bebf5c commit f647ec2Copy full SHA for f647ec2
packages/rs-sdk-trusted-context-provider/examples/with_fallback.rs
@@ -13,6 +13,23 @@ use std::sync::Arc;
13
struct MyFallbackProvider;
14
15
impl ContextProvider for MyFallbackProvider {
16
+ fn get_quorum_public_key_async(
17
+ &self,
18
+ quorum_type: u32,
19
+ quorum_hash: [u8; 32],
20
+ core_chain_locked_height: u32,
21
+ ) -> std::pin::Pin<
22
+ Box<
23
+ dyn std::future::Future<Output = Result<[u8; 48], ContextProviderError>>
24
+ + Send
25
+ + 'static,
26
+ >,
27
+ > {
28
+ // Wrap the sync version in an async block
29
+ let result = self.get_quorum_public_key(quorum_type, quorum_hash, core_chain_locked_height);
30
+ Box::pin(async move { result })
31
+ }
32
+
33
fn get_quorum_public_key(
34
&self,
35
_quorum_type: u32,
0 commit comments