Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/app/(app)/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ CID: QmehRz7Xab8Cg27fypBiffVgW11Yoac6BJcgd3g1pH5V7m
)}
<code>null</code>
{lang(
", it is verified in record mode (sha-256 of JSON.stringify(record)). That's what the CLI has done since 3.2.6 and the GitHub Action does too; /verify does it once V1 ships.",
", se verifica como modo record (sha-256 de JSON.stringify(record)). Así lo hacen la CLI desde 3.2.6 y el GitHub Action; /verify lo hará con V1."
", it is verified in record mode (sha-256 of JSON.stringify(record)). That's what the CLI has done since 3.2.6; the GitHub Action and /verify do it too.",
", se verifica como modo record (sha-256 de JSON.stringify(record)). Así lo hace la CLI desde 3.2.6; el GitHub Action y /verify también."
)}
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/verify/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function VerifyContent() {
</div>
</motion.form>

<div className="mb-8 -mt-2 space-y-4">
<div id="examples" className="mb-8 -mt-2 space-y-4 scroll-mt-48">
<p className="text-center text-xs text-gray-500">
{tv.example_intro}{' '}
<Link href="/docs#quickstart" className="text-emerald-400 hover:text-emerald-300 transition-colors">
Expand Down
47 changes: 23 additions & 24 deletions apps/web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,19 @@ import { isNiriumtoberLive, niriumtoberHref } from "@/lib/niriumtober";
import { niriumtoberHit, trackFunnel } from "@/lib/attribution";
import { MAINNET_API_URL, PROOF_TX_HASH, PROOF_TX_URL } from "@/lib/constants";

// El snippet de abajo se corrió TAL CUAL contra nirium@0.18.0 el 9-nov-2026
// (Node 24, express 5.3, @x402/* 2.30.0, facilitador de OpenZeppelin en
// El snippet de abajo se corrió TAL CUAL contra nirium@0.20.0 el 25-nov-2026
// (Node 24, express 5.3.0, @x402/* 2.32.0, facilitador de OpenZeppelin en
// testnet, cuentas nuevas fondeadas con Friendbot): 402 sin pago, 200 con
// pago y {"tempC":21}, 0.05 USDC liquidado en esta tx (verificada en Horizon,
// ledger 5637422). La corrida anterior fue con 0.16.0 el 4-oct
// (d121b61c...). Si se edita el snippet, hay que volver a correrlo y cambiar
// este hash.
// ledger 5922472). La corrida anterior fue con 0.18.0 el 9-nov (97f11e97...).
// Si se edita el snippet, hay que volver a correrlo y cambiar este hash.
//
// Ojo, visto en la misma prueba: el facilitador de testnet respondió 504 en
// Ojo, visto en la prueba del 9-nov (el 25-nov, 2 de 2 pagos salieron bien): el facilitador de testnet respondió 504 en
// 6 de 9 intentos y aun así liquidó el pago, así que el cliente pagó y recibió
// 402. Es del facilitador, no del snippet, pero quien lo pruebe puede verlo.
// Verificación externa de holistis: sus 21 casos y su resultado público (19-nov-2026).
const HOLISTIS_RESULT_URL = 'https://github.com/nirium-protocol/nirium/pull/396#issuecomment-7016710117';
const SNIPPET_TESTNET_TX = '97f11e97d81924b8874f4643bcb59720cc59dfc4248beae5059422b7ae800b90';
const SNIPPET_TESTNET_TX = '0ab43362e90d5d123ade51ea906fa760c7d042dfd4d01c5ca8815aa6e6025e24';
const SNIPPET_TESTNET_TX_URL = `https://stellar.expert/explorer/testnet/tx/${SNIPPET_TESTNET_TX}`;

const SERVE_SNIPPET = `import express from 'express';
Expand Down Expand Up @@ -92,13 +91,10 @@ const POLICY_WAIT_THEN_ALLOW_TX = '63fe315ad191c12d8baab4e7d146dc4b8cd7bb0c0ce97
const POLICY_RACE_ALLOW_TX = '20b9f5a21f012001488630e4f5be7a64c69f6a39648ad53b092d724df3c9b57c';
const stellarTestnetTx = (hash: string) => `https://stellar.expert/explorer/testnet/tx/${hash}`;

// Ancla propia de Nirium en mainnet (agent.id "selftest-nirium", 21-oct-2026):
// firmada y con record embebido, así /verify muestra el resultado completo
// (hash recalculado y firma válida). Es la misma que usa el botón de ejemplo
// de /verify. La anterior (QmZEuGg…) solo declaraba un hash, sin firma, y en
// /verify no mostraba quién la ancló. Se enlaza a /verify y no a un gateway
// público, que a veces tarda o limita.
const AUDIT_ANCHOR_CID = 'QmaAXCmpqaptjDTJoRPcyFBUywrvuA7GfLyArVaQwd5VDM';
// Aviso propio en mainnet (25-nov-2026): el hash de la política de jurisdicciones v1.5,
// firmado con una llave de pruebas de Nirium. Uso propio, no se cuenta como uso. Es el
// mismo ejemplo de /verify. `nirium verify --evidence --require-signature` pasa.
const AUDIT_ANCHOR_CID = 'Qmd7yun1FUDZ3p2DK36BxRpLaAA2EQjjWfZ1S77R4Z1v4F';
const AUDIT_ANCHOR_URL = `/verify?cid=${AUDIT_ANCHOR_CID}`;
// Recibo firmado de un integrador externo (TIA, agent.id "tia-api", llave GATT3…),
// mainnet, 12-nov-2026. `nirium verify` → SIGNATURE: VALID. Es su cuarto anclaje.
Expand Down Expand Up @@ -163,9 +159,9 @@ export default function Home() {
items: [
{
icon: FileCheck,
title: lang('Signed mainnet anchor (our own test)', 'Ancla firmada en mainnet (prueba propia)'),
title: lang('Our own policy notice, signed and anchored on mainnet (own use)', 'Nuestro propio aviso de política, firmado y anclado en mainnet (uso propio)'),
detail: `${AUDIT_ANCHOR_CID.slice(0, 18)}…`,
cta: lang('verify it, 2026-10-21', 'verifícala, 2026-10-21'),
cta: lang('verify it, 2026-11-25', 'verifícalo, 2026-11-25'),
href: AUDIT_ANCHOR_URL,
},
{
Expand Down Expand Up @@ -231,7 +227,7 @@ export default function Home() {
icon: Terminal,
title: lang('The snippet above, run verbatim', 'El snippet de arriba, corrido tal cual'),
detail: `${SNIPPET_TESTNET_TX.slice(0, 20)}…`,
cta: lang('testnet, 2026-11-09', 'testnet, 2026-11-09'),
cta: lang('testnet, 2026-11-25', 'testnet, 2026-11-25'),
href: SNIPPET_TESTNET_TX_URL,
},
],
Expand Down Expand Up @@ -284,8 +280,8 @@ export default function Home() {
className="mt-5 text-base sm:text-lg text-white/60 max-w-2xl mx-auto leading-relaxed"
>
{lang(
'The ledger already proves who paid, how much and when. Nirium keeps what it can\'t: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them. Payment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.',
'El ledger ya prueba quién pagó, cuánto y cuándo. Nirium guarda lo que falta: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos. Rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.')}
'The ledger already proves who paid, how much and when. Audit Trail records what it can\'t: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them. Payment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.',
'El ledger ya prueba quién pagó, cuánto y cuándo. Audit Trail registra lo que falta: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos. Rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.')}
</motion.p>

<motion.div
Expand Down Expand Up @@ -327,8 +323,8 @@ export default function Home() {
<h2 className="text-2xl sm:text-3xl font-bold">{lang('Prove what the chain doesn\'t show', 'Demuestra lo que la cadena no muestra')}</h2>
<p className="mt-3 text-white/60 max-w-2xl">
{lang(
'A Stellar payment is already public on the ledger. Audit Trail covers what is not: what your policy decided, including payments it refused and never signed, a record of what each payment bought, and any document or event off chain. Anyone can check it from a hash alone, and if anyone changes a receipt, it shows: the CID no longer matches.',
'Un pago en Stellar ya es público en el ledger. Audit Trail cubre lo que no está ahí: lo que decidió tu política, incluidos los pagos que rechazó y nunca firmó, un registro de qué compró cada pago, y cualquier documento o evento fuera de la cadena. Cualquiera lo revisa solo con el hash, y si alguien cambia un recibo, se nota: el CID deja de coincidir.')}
'A Stellar payment is already public on the ledger. Audit Trail covers what is not: the quote or terms behind a payment, what your policy decided (including payments it refused, or held for a person), what was delivered, and any later correction. Anchor just a hash and the document stays with you. Anyone can check a receipt from its CID, and if anyone changes it, it shows: the CID no longer matches.',
'Un pago en Stellar ya es público en el ledger. Audit Trail cubre lo que no está ahí: la cotización o los términos detrás de un pago, lo que decidió tu política (incluidos los pagos que rechazó, o retuvo para una persona), qué se entregó y cualquier corrección posterior. Ancla solo un hash y el documento se queda contigo. Cualquiera revisa un recibo con su CID, y si alguien lo cambia, se nota: el CID deja de coincidir.')}
</p>
<div className="mt-6">
<CodeBlock
Expand All @@ -351,7 +347,10 @@ export default function Home() {
<code className="font-mono text-stellar-teal/80">nirium cid receipt.json</code>
{lang(' shows it is the original, without relying on us.', ' demuestra que es el original, sin depender de nosotros.')}
</p>
<a href={REFUSED_ANCHOR_URL} target="_blank" rel="noopener noreferrer" className="mt-5 inline-flex items-center gap-1.5 text-xs text-stellar-teal/80 hover:text-stellar-teal">
<Link href="/verify#examples" className="mt-5 block text-xs text-stellar-teal/80 hover:text-stellar-teal">
{lang('See examples: before paying, the decision, the delivery and afterwards', 'Ver ejemplos: antes de pagar, la decisión, la entrega y después')}
</Link>
<a href={REFUSED_ANCHOR_URL} target="_blank" rel="noopener noreferrer" className="mt-3 inline-flex items-center gap-1.5 text-xs text-stellar-teal/80 hover:text-stellar-teal">
{lang('Verify a receipt for a payment that never happened (AgentLedger blocked it, mainnet, 18 Nov 2026)', 'Verifica el recibo de un pago que nunca ocurrió (AgentLedger lo bloqueó, mainnet, 18 nov 2026)')} <ExternalLink className="w-3 h-3" />
</a>
</div>
Expand Down Expand Up @@ -422,7 +421,7 @@ export default function Home() {
<CodeBlock code={SERVE_SNIPPET} filename="server.js" copyLabel={copy} copiedLabel={copied} />
</div>
<p className="mt-3 text-xs text-white/40 font-mono leading-relaxed">
{lang('Ran verbatim with nirium@0.18.0 on testnet (9 Nov 2026): ', 'Corrido tal cual con nirium@0.18.0 en testnet (9 nov 2026): ')}
{lang('Ran verbatim with nirium@0.20.0 on testnet (25 Nov 2026): ', 'Corrido tal cual con nirium@0.20.0 en testnet (25 nov 2026): ')}
<a href={SNIPPET_TESTNET_TX_URL} target="_blank" rel="noopener noreferrer" className="text-stellar-teal/80 hover:text-stellar-teal underline underline-offset-2">
{lang('402, then paid, then 200', '402, luego pago, luego 200')}
</a>.
Expand Down Expand Up @@ -568,7 +567,7 @@ export default function Home() {
<div className="flex flex-wrap items-center justify-center gap-3 sm:gap-6 text-xs text-white/60 mb-6">
<span className="font-mono">x402</span>
<span className="text-white/20">•</span>
<span className="font-mono">MPP <span className="text-white/35">(testnet)</span></span>
<span className="font-mono">MPP <span className="text-white/35">(testnet, nirium 0.19.8)</span></span>
<span className="text-white/20">•</span>
{/* LCP salía aquí como "estándar abierto". Es la capa propia de Nirium,
apagada mientras dura la revisión legal: no va en esta fila. */}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/components/ui/ChatBot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const ChatBot = () => {
// what the linked page already says - this guide never states a fact of its own.
const kb: Record<string, any> = {
es: {
home: "El ledger de Stellar ya prueba quién pagó, cuánto y cuándo. **Nirium guarda lo que falta**: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos.\n\nSon rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.\n\n→ [Verifica un recibo](/verify) · [Docs](/docs)",
home: "El ledger de Stellar ya prueba quién pagó, cuánto y cuándo. **Audit Trail registra lo que falta**: para qué fue cada pago, los pagos que tu política rechazó y nunca firmó, los registros fuera de la cadena y quién responde por ellos.\n\nSon rieles de pago, auditoría y ejecución para apps, backends y agentes de IA. No custodial: tus llaves, tus fondos.\n\n→ [Verifica un recibo](/verify) · [Docs](/docs)",
verify: "Pega un CID en [/verify](/verify), sin cuenta. Comprueba que el registro **no cambió** desde que se ancló y, si viene firmado, **qué llave lo firmó**. No prueba que su contenido sea verdad. Si guardaste tu copia del recibo, `nirium cid recibo.json --expect <CID>` demuestra que es el original.\n\nAhí hay un ejemplo de un pago que nunca ocurrió: su política lo bloqueó, no hay transacción, y solo el recibo guarda la decisión.\n\nCómo anclar los tuyos: [Docs](/docs).",
payouts: "[Payouts](/payouts) paga hasta **100 destinatarios** (contratistas, freelancers, pagos B2B; no es nómina de empleados) desde la wallet de una empresa, en un solo lote que **tú firmas**. Cada corrida se ancla en IPFS.\n\nEn testnet está abierto. En mainnet es **solo por invitación**.",
pricing: "Planes y precios en [/pricing](/pricing). Nirium **nunca cobra un porcentaje** del dinero que mueves o guardas.",
Expand Down Expand Up @@ -118,7 +118,7 @@ const ChatBot = () => {
default: "Soy Nirium Guide. Puedo llevarte a:\n\n[Verifica un recibo](/verify) · [Payouts](/payouts) · [Treasury](/treasury) · [Developers](/developers) · [Docs](/docs) · [Precios](/pricing)\n\n¿Qué necesitas?"
},
en: {
home: "Stellar's ledger already proves who paid, how much and when. **Nirium keeps what it can't**: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them.\n\nPayment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.\n\n→ [Verify a receipt](/verify) · [Docs](/docs)",
home: "Stellar's ledger already proves who paid, how much and when. **Audit Trail records what it can't**: what each payment was for, the payments your policy refused and never signed, off-chain records, and who stands behind them.\n\nPayment, audit and execution rails for apps, backends and AI agents. Non-custodial: your keys, your funds.\n\n→ [Verify a receipt](/verify) · [Docs](/docs)",
verify: "Paste a CID at [/verify](/verify), no account needed. It checks the record **has not changed** since it was anchored and, if it is signed, **which key signed it**. It does not prove its contents are true. If you kept your copy of the receipt, `nirium cid receipt.json --expect <CID>` proves it's the original.\n\nThere's an example of a payment that never happened: its policy blocked it, there is no transaction, and only the receipt records the decision.\n\nHow to anchor your own: [Docs](/docs).",
payouts: "[Payouts](/payouts) pays up to **100 recipients** (contractors, freelancers, B2B payouts; not employee payroll) from one company wallet, in a single batch **you sign**. Every run is anchored to IPFS.\n\nOpen on testnet. On mainnet it is **invite-only**.",
pricing: "Plans and prices are at [/pricing](/pricing). Nirium **never charges a percentage** of the money you move or hold.",
Expand Down
8 changes: 5 additions & 3 deletions apps/web/dictionaries/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,20 @@
"receipt_title": "A receipt adds",
"receipt_items": [
"What doesn't fit in a memo: \"0.02 USDC paid for GET /signals, request r-123, response delivered\"",
"A payment that never happened: if a policy refuses a $25 charge, there is no transaction; the decision can be anchored as a receipt",
"A payment that never happened, or one held for approval: a policy refuses a $25 charge, so there is no transaction, or waits for a person; the decision can be anchored as a receipt",
"Records that never touch the chain: a partner's exchange-rate quote, the evidence behind an escrow release, the invoice or order being paid, or which version of the terms a user accepted",
"Several parties: each one signs its own part, so a missing or out-of-order step can be detected",
"A correction: a new receipt names the one it fixes, and the original stays as it was",
"Private evidence: only its hash is public; the file stays with you, and anyone you give it to can check it matches",
"Who stands behind it: signed with the declarer's own Stellar key, so anyone can check the signer said it, not Nirium, and any later change shows"
"Who stands behind it, when it is signed: the declarer's own Stellar key, so anyone can check the signer said it, not Nirium, and any later change shows"
],
"proves_footer": "If all you need to prove is the transfer, link the transaction. A receipt shows a record hasn't changed since it was anchored; it doesn't prove the record is true.",
"design_notes_link": "Design notes",
"planned_label": "PLANNED · NOT BUILT YET",
"planned_title": "What verification will add",
"planned_items": [
"Anchors on Stellar itself: each batch of receipts gets one Merkle root in a Soroban contract, so a receipt can be proven from Stellar alone and its time comes from the ledger, not our server clock",
"Policy-decision receipts built in: every ALLOW or DENY from the pre-sign hook anchored automatically, including payments that were refused and never signed (AgentLedger already anchors its own decisions by hand)",
"Policy-decision receipts built in: every ALLOW or DENY from the pre-sign hook anchored automatically, including payments that were refused and never signed (AgentLedger anchored five of its own by hand on 18 Nov 2026)",
"One receipt format for Stellar payments, x402 payments and escrow releases",
"Reconciliation that flags a payment with no receipt, or a receipt with no payment"
],
Expand Down
Loading