Skip to content

Settlement to L1

HPEC executes off-chain, but custody and settlement live on Altius L1. A set of on-chain contracts (the settlement bridge) anchors HPEC's off-chain execution to the chain, so users keep on-chain guarantees over their assets.

Lifecycle

sequenceDiagram
    participant U as User
    participant L1 as Altius L1 (contracts)
    participant H as HPEC
    U->>L1: Deposit assets (custody)
    L1-->>H: Deposit imported into fast state
    Note over H: Off-chain execution updates fast working state
    H->>L1: Batch-commit state commitment
    U->>L1: Request withdrawal
    L1-->>H: Withdrawal recognized
    H->>L1: Finalize withdrawal
    U->>L1: Forced exit (if HPEC is unavailable)
  • Deposit — users deposit assets into the on-chain custody contract; HPEC imports the deposit into its fast working state.
  • Commit — HPEC periodically commits batched state commitments to L1, anchoring off-chain execution on-chain.
  • Withdraw — withdrawals are recognized on L1 and finalized against the committed state.
  • Forced exit — a user-protection path that lets users recover funds directly from L1 if the off-chain layer becomes unavailable, so custody never depends solely on HPEC liveness.

On-chain components

The settlement bridge is implemented as a set of L1 contracts with distinct responsibilities, for example:

  • a custody/collateral vault that holds user assets,
  • a state-commitment bridge that records HPEC's batched commitments,
  • a settlement verifier that validates committed results, and
  • a forced-exit module that enforces the user-protection path.

Info

The split between a fast off-chain working state and authoritative on-chain custody is the core of HPEC's dual-state model: performance off-chain, guarantees on-chain.