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§
Sourcefn header(&self, evidence: &WriteEvidence) -> Result<WriteHeaderFrame, DbError>
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).