Skip to main content

KeyData

Trait KeyData 

Source
pub trait KeyData: Send + Sync {
    // Required method
    fn resolve(&self) -> Result<&[u8], Box<dyn Error + Send + Sync>>;
}
Expand description

The secret an EncoreAuthKey signs with, resolved each time a call is signed or verified — so a key that cannot be resolved fails the calls that use it, not the process.

Required Methods§

Source

fn resolve(&self) -> Result<&[u8], Box<dyn Error + Send + Sync>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl KeyData for Vec<u8>

Key material that is already resolved.

Source§

fn resolve(&self) -> Result<&[u8], Box<dyn Error + Send + Sync>>

Implementors§