> For the complete documentation index, see [llms.txt](https://sonic-ai-works.gitbook.io/sonic-networks-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sonic-ai-works.gitbook.io/sonic-networks-docs/sonic-1.0.0-rc-production-architecture/sonic-1.0.0-rc.0-production-architecture.md).

# SONIC 1.0.0-rc.0 · Production Architecture

Canonical SONIC 1.0.0-rc.0 production architecture, revision 30: cryptographic key rotation, externally signed receipts, public trust keys, and exact migration-head readiness.

**Architecture revision 30 · Release candidate · `/api/v1/*` · `/ws/v1` · Solana mainnet-beta production boundary**

Revision 30 strengthens **SONIC Token Sale** without changing the product version, canonical product name, repository identity, API namespace, or public/application domains.

{% hint style="info" %}
**Canonical domains:** public and marketing `https://sonicnetwork.fun`; authenticated application `https://sonicnetwork.app`. Canonical Token Sale route: `https://sonicnetwork.fun/token-sale`.
{% endhint %}

## r30 cryptographic trust model

```mermaid
flowchart LR
  Public[sonicnetwork.fun/token-sale] --> Sale[apps/tokensale]
  App[sonicnetwork.app] --> Wallet[apps/wallet]
  Sale --> API[/api/v1/sale/*]
  Wallet --> API
  API --> QuoteRing[Quote HMAC keyring]
  API --> ReleaseRing[Release Ed25519 keyring]
  API --> Kernel[Payment Kernel]
  API --> DB[(PostgreSQL / Prisma)]
  API --> Trust[/api/v1/trust/keys]
  Kernel --> Solana[Solana mainnet-beta]
  Solana --> Worker[Confirm / settle / reconcile / allocate]
  Worker --> ReceiptSigner[External receipt signer]
  ReceiptSigner --> Receipt[Ed25519 signed receipt]
  ReleaseRing --> Trust
  Receipt --> Trust
```

## What r30 adds

* every `SaleQuote` carries a `quoteKeyId` and the quote signature binds that key ID;
* production quote signing uses an explicit secret keyring plus a configured current key ID;
* older still-valid quotes remain verifiable during rotation while their key remains in the keyring;
* Sale Release activation resolves the verification key by `activationKeyId` from an Ed25519 public-key ring;
* production receipt signing moves behind an external signer boundary and persists `receiptKeyId` + `receiptAlgorithm`;
* the worker verifies the external receipt signature before storing it;
* `GET /api/v1/trust/keys` exposes only safe public Ed25519 JWKs and SHA-256 fingerprints;
* production readiness requires the quote keyring, release verification keyring, receipt signer, receipt verification keyring, and the exact required Prisma migration set;
* migration `202609110004_r30_key_rotation` adds quote-key identity and receipt-algorithm metadata.

## Canonical economics

| Value                     |                  Contract |
| ------------------------- | ------------------------: |
| Initial SONIC sale price  | **$0.000002 USD / SONIC** |
| SONIC decimals            |                     **9** |
| Maximum supply            |  **18,446,000,000 SONIC** |
| Development SOL reference |      **1 SOL = $100 USD** |

{% hint style="warning" %}
`1 SOL = $100 USD` is `REFERENCE_ONLY`. Production quotation fails closed when live pricing or the active Sale Release confirmation policy cannot be satisfied.
{% endhint %}

The stable public product name remains **SONIC Token Sale**. Internal objects remain `SaleRelease`, `SaleTermsAcceptance`, `SaleIntent`, `SaleQuote`, `SaleTransaction`, and `SaleReceipt`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sonic-ai-works.gitbook.io/sonic-networks-docs/sonic-1.0.0-rc-production-architecture/sonic-1.0.0-rc.0-production-architecture.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
