Skip to main content

Authentication

Trait Authentication 

Source
pub trait Authentication {
    // Required methods
    fn verify(&self, key: &str, preimage: &[u8], signature: &[u8]) -> bool;
    fn authenticate_act(&self, act: &Act) -> bool;
}
Expand description

Verification authenticates keys, not merely the presence of a signed wrapper.

Required Methods§

Source

fn verify(&self, key: &str, preimage: &[u8], signature: &[u8]) -> bool

Source

fn authenticate_act(&self, act: &Act) -> bool

Verify the owner’s actual signature AND normal CBCL protocol admission. The core additionally rebuilds the act and checks pinned shape/cast/context.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§