The layers
- Applications and SDKs. Palliora DeFi, Palliora AI, or any app. They create Compute Contracts and read results. In a production integration, end users never deal with Palliora directly.
- Compute Contracts. The agreement that ties everything together: what runs, on whose data, which Guardians are involved, the confidentiality level, what it costs, and who gets paid. Locked and recorded before anything executes. See Compute Contracts.
- Guardian network. Guardians hold key shares, sign contracts, threshold-decrypt inputs and approve disclosure. Compute nodes run the actual workload. Verifiers check outputs against the contract’s own tests. One physical node can play several of these roles. See Guardian and Threshold encryption.
- Services. Discovery, orchestration, mempool, indexer and RPC, so applications can find Guardians and submit requests.
- Encrypted Data Availability. Data is encrypted, sharded, erasure-coded and committed with KZG commitments. Nodes confirm availability by sampling, not downloading everything. See Data availability.
- Coordination ledger. A proof-of-stake validator set orders and finalizes the shared record of agreements, results, disclosure requests and payments. On testnet this ledger is Manas. See Validator.
Who does what
A Guardian node can serve more than one of these roles at once. Which role applies to a given request depends on its configuration and what the contract asks for. See Actors and roles for how each role gets paid.
The lifecycle of a request
- Agreement. The app builds a Compute Contract agreement request: price, the Guardians involved, and the execution rules. It sends this to an RPC node.
- Funds locked. The request enters the mempool, the fee is locked in escrow, and the request goes to the selected Guardians.
- Guardians sign. Every Guardian in the assigned group signs before the contract is recorded with an Agreement ID (also called a Contract ID, or CID). On testnet, groups are three Guardians.
- Compute request. The app submits the actual request, referencing the Agreement ID, with the payload encrypted so no single Guardian can read it.
- Threshold decryption. A quorum of Guardians decrypts the payload together.
- Execution. The payload goes to a compute node, running in the execution mode the contract specified.
- Result. The result is published, encrypted, to the Data Availability layer.
- Verification. Where the contract asks for it, a verifier checks the result against the contract’s tests.
- Settlement. The ledger finalizes the result, pays Guardians, the compute node and verifiers, and refunds any unused balance.
- Retrieval. The app reads the result and decrypts it for the user.
Privacy, stage by stage
The same journey from the data’s point of view. At each stage a different party holds the data, and no single party holds it in readable form from start to finish.
The Quickstart and the plaintext guides skip stages 1 and 3 on purpose, so you can watch every step. Use Encrypted compute for the private path.