@pwngh/economy-lab
    Preparing search index...

    Interface Movement

    One accepted session movement: a balanced set of legs not yet posted to the ledger, made ledger-final at settle. Sessions are economy-tier objects keyed by an opaque scope (a game-world instance is one natural key; see src/netting.ts for the tier boundary). prevHash/hash chain the session's movements and the settlement posting anchors the final head, so tamper-evidence extends to every movement.

    interface Movement {
        hash: string;
        idempotencyKey: string;
        legs: readonly Leg[];
        prevHash: string;
        recordedAt: number;
        seq: number;
        sessionId: string;
    }
    Index
    hash: string

    Session chain hash after this movement.

    idempotencyKey: string

    The movement's idempotency key, unique across all sessions.

    legs: readonly Leg[]
    prevHash: string

    Session chain hash before this movement; the genesis value (64 zeros) for the first.

    recordedAt: number

    Epoch ms the movement was accepted.

    seq: number

    Position in the session chain, from 0.

    sessionId: string