Skip to main content

Authorship

Trait Authorship 

Source
pub trait Authorship: Send + Sync {
    // Required methods
    fn header(
        &self,
        evidence: &WriteEvidence,
    ) -> Result<WriteHeaderFrame, DbError>;
    fn hasher(
        &self,
        audience: &Audience,
        key: KeyId,
    ) -> Result<AuthorshipHasher, DbError>;
}
Expand description

What a loader needs from sync to authenticate another member’s write.

Required Methods§

Source

fn header(&self, evidence: &WriteEvidence) -> Result<WriteHeaderFrame, DbError>

Open the evidence’s sealed header with the store key its prefix names, and verify its header signature with the signing key of its device’s member, current in the header’s recorded prefix (D9).

Source

fn hasher( &self, audience: &Audience, key: KeyId, ) -> Result<AuthorshipHasher, DbError>

The keyed leaf hasher of an audience’s part sealed with this key (D11).

Implementors§