fishhook-ant - v0.1.0
    Preparing search index...

    Interface Scheme

    How one sender signs a delivery. The presets in schemes are values of this type and go through the same checks as one you write.

    signedContent must contain body exactly once, timestamp exactly once when timestamp is set and never otherwise, and the same for id. An id that is not signed is not read at all: a header anyone can change is not evidence of anything.

    interface Scheme {
        algorithm: Algorithm;
        id?: { header: string };
        signature: SignatureFormat;
        signedContent: readonly SignedPart[];
        timestamp?: TimestampSource;
    }
    Index
    algorithm: Algorithm
    id?: { header: string }
    signature: SignatureFormat
    signedContent: readonly SignedPart[]
    timestamp?: TimestampSource