Documentation

Everything you need to deploy, configure, and operate GuardLattice. From first install to sovereign production.

Quick Start

Get a single-node instance running in under 5 minutes. No dependencies required.

Get Started
📖

API Reference

727+ REST endpoints covering all 22 sub-systems. Full request/response documentation.

Browse API
💻

CLI Reference

1,176 commands organized by domain. Complete usage examples and output formats.

Browse CLI

Quick Start Guide

Installation — guardlatice-cli

API Reference

727+ REST endpoints organized by domain. All endpoints support JSON request/response with cookie-based authentication (HttpOnly).

Authentication & Sessions

Login, logout, session management, role-based access, temporary access windows.

4 endpoints /api/auth/*

Policy Engine

Create policies, evaluate decisions, manage roles, audit access patterns.

45+ endpoints /api/policy/*

GLAT O1 Ledger

Submit transactions, query blocks, verify proofs, manage consensus.

80+ endpoints /api/ledger/*

Cryptography

Key generation, signing, verification, encryption, FHE operations, MPC sessions.

120+ endpoints /api/crypto/*

CBDC Operations

Currency issuance, distribution, transfers, monetary policy, offline sync.

60+ endpoints /api/cbdc/*

Smart Contracts (GVM)

Deploy GL-C contracts, invoke methods, query state, manage upgrades.

50+ endpoints /api/gvm/*

SAL (Legal Layer)

Create service agreements, verify compliance, generate audit reports.

35+ endpoints /api/sal/*

Commerce & Payments

Payment processing, EMV bridge, ISO 20022 messaging, settlement.

70+ endpoints /api/commerce/*

Node Management

Cluster operations, node health, consensus parameters, network topology.

40+ endpoints /api/node/*

CLI Reference

1,176 commands organized by domain. Every operation available through the API is also accessible via the command line.

Command Group Commands Description
guardlatice node 85+ Node lifecycle, cluster management, health checks
guardlatice ledger 120+ Transaction submission, block queries, proof verification
guardlatice crypto 150+ Key management, signing, encryption, FHE, MPC
guardlatice cbdc 90+ Currency issuance, distribution, policy management
guardlatice policy 65+ Policy creation, evaluation, role management
guardlatice gvm 75+ Smart contract deployment, invocation, state queries
guardlatice stark 40+ Proof generation, verification, circuit management
guardlatice commerce 95+ Payment processing, EMV, ISO 20022, settlement
guardlatice sal 55+ Service agreements, compliance, audit reports
guardlatice admin 100+ System administration, diagnostics, backup, restore

GL-C Smart Contract Language

Type-safe, formally verifiable, deterministic execution. 17,252 lines of compiler implementation.

Language Features

Type Safety

Strong static typing with compile-time verification. No runtime type errors possible.

Formal Verification

Built-in support for formal proofs. Verify contract behavior before deployment.

Deterministic Execution

Same inputs always produce same outputs. No undefined behavior, no non-determinism.

Post-Quantum Integration

Native PQ cryptographic primitives available as language built-ins.

example.glc — GL-C Smart Contract
// CBDC Transfer Contract
contract CbdcTransfer {
  state balances: Map<Address, Amount>;
  state total_supply: Amount;

  // Only central bank can mint
  @require(caller.role == Role::CentralBank)
  fn mint(to: Address, amount: Amount) {
    balances[to] += amount;
    total_supply += amount;
    emit Minted(to, amount);
  }

  // PQ-signed transfer with offline support
  @pq_signed
  @offline_capable
  fn transfer(to: Address, amount: Amount) {
    require(balances[caller] >= amount);
    balances[caller] -= amount;
    balances[to] += amount;
    emit Transferred(caller, to, amount);
  }
}