Interface SignedEvent

interface SignedEvent {
    id: string;
    type: ProvenanceEventType;
    timestamp: string;
    sequence: number;
    agentId: string;
    prevHash: string;
    hash: string;
    payloadHash: string;
    payload: Record<string, unknown>;
    signature: string;
    signerPublicKey: string;
    anchorId?: string;
}

Properties

id: string

Unique event ID (UUID v4).

Event type.

timestamp: string

ISO 8601 timestamp.

sequence: number

Monotonically increasing sequence number within this agent.

agentId: string

Agent instance ID that produced this event.

prevHash: string

SHA-256 hash of the previous event (empty string for genesis).

hash: string

SHA-256 hash of this event's preimage.

payloadHash: string

SHA-256 hash of the payload JSON.

payload: Record<string, unknown>

Event-specific payload (JSON-serializable).

signature: string

Ed25519 signature of the hash, base64-encoded.

signerPublicKey: string

Base64-encoded Ed25519 public key of the signing agent.

anchorId?: string

Optional: Merkle anchor this event belongs to.