Skip to main content

SiweNonceProvider

Trait SiweNonceProvider 

Source
pub trait SiweNonceProvider: Send + Sync {
    // Required method
    fn get_nonce<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = SiweCallbackResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_nonce<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = SiweCallbackResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return an ERC-4361 nonce containing 8–250 ASCII alphanumeric characters.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§