@me2em/pact
    Preparing search index...

    Interface Event

    Journal event envelope (PACTS §7.1). pl shape per ty is normative (PACTS §7.3) and enforced by strict parse — unknown or missing fields reject (MALFORMED).

    const event: Event = {
    typ: 'me2em/pact-event/v1',
    pid, sq: 1, ph: prevHash,
    ty: 'ACT', pl: { no: 'approved' },
    iat: 1700000000,
    sig: [{ p: pactPub, s: signature }],
    };
    interface Event {
        typ: "me2em/pact-event/v1";
        pid: string;
        sq: number;
        ph: string;
        ty: EventType;
        pl: Record<string, unknown>;
        iat: number;
        sig: Signature[];
    }
    Index
    typ: "me2em/pact-event/v1"
    pid: string
    sq: number
    ph: string
    pl: Record<string, unknown>
    iat: number
    sig: Signature[]