# On chain architecture

> **Every compound scored on Peptosis is permanent. No institution can alter it. No platform shutdown can erase it.**

The on-chain layer is what separates Peptosis from every other biotech intelligence tool. It is not a feature — it is a philosophical commitment to open science.

## What Goes On-Chain

```solidity
// Peptosis On-Chain Registry — Base Network

// Every graded compound emits an on-chain event
contract PeptosisRegistry {

  event CompoundScored(
    bytes32 indexed compound_id,  // unique compound identifier
    address indexed scorer,        // AI agent or validator address
    uint8   grade,                 // 0=D, 1=C, 2=B, 3=A, 4=A+
    uint16  score,                 // 0-1000 (div 10 for display)
    uint256 timestamp,             // block timestamp
    bytes32 data_hash              // IPFS hash of full analysis
  );

  // Anyone can verify any score at any time
  function verify_score(bytes32 compound_id)
    external view returns (CompoundRecord memory);
}
```

Every scoring event is an immutable on-chain record. The full analysis data is stored on IPFS and referenced by hash. This means the complete intelligence output for every compound — every score, every factor, every grade — is publicly verifiable, permanently available, and owned by no one.

***

## Why Base

* **Low fees** make on-chain logging practical at scale — every compound score is logged without cost being a barrier.
* **Coinbase ecosystem alignment** brings mainstream trust and discoverability.
* **Strong consumer app and AI × crypto developer culture.**
* **Long-term Ethereum security** guarantees the permanence of on-chain records.
* **Base is early enough** for a category leader to define the landscape.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://peptosis.gitbook.io/peptosis-docs/documentation/platform/on-chain-architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
