Skip to main content

SidecarReceiptAuthority

Trait SidecarReceiptAuthority 

Source
pub trait SidecarReceiptAuthority {
    // Required method
    fn permits(
        &self,
        receipt: &SidecarReceipt,
        sidecar: &[u8; 768],
        payload: &[u8],
    ) -> bool;
}
Expand description

Verify current signer, subject/guardian policy and chain state. This must independently interpret the decoded sidecar and bind the payload location; neither possession of a key nor a signed policy reference grants access.

Required Methods§

Source

fn permits( &self, receipt: &SidecarReceipt, sidecar: &[u8; 768], payload: &[u8], ) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§