From ea5e85aa2041140381f53892ddb47636d367a1cd Mon Sep 17 00:00:00 2001 From: Giovanny Amador <219895655+Eras256@users.noreply.github.com> Date: Fri, 4 Dec 2026 15:33:03 -0600 Subject: [PATCH] chore(release): nirium 0.23.0 and nirium-cli 4.1.0 nirium 0.22.0 went to npm on 3 Dec, before the post-quantum work, so the pq entries that sat under "0.22.0 - unreleased" move to 0.23.0. Drops the line saying the node and `nirium verify` don't handle `pq` yet: both do now. nirium-cli: the Unreleased pq section becomes 4.1.0 (new options, no breaking change). Co-Authored-By: Claude Opus 5.5 --- packages/cli/CHANGELOG.md | 2 +- packages/cli/package-lock.json | 4 ++-- packages/cli/package.json | 2 +- packages/sdk/CHANGELOG.md | 7 +++++-- packages/sdk/package-lock.json | 4 ++-- packages/sdk/package.json | 2 +- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 1d6536a..bdb9d94 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to the `nirium-cli` package are documented here. -## Unreleased +## 4.1.0 - 2026-12-04 `nirium verify` checks the post-quantum signature some receipts now carry (`pq`: ML-DSA-65, NIST FIPS 204, over the same statement as `agent`). An invalid `pq`, or a `pq` without a valid `agent` next to it, fails the receipt. When it is valid, `verify` looks up on Horizon whether the key is the first one the signer registered on its own account (`manage_data nirium-pq-v1`), before the anchor, and warns if not (`not-first` when the account registered a different key first). A history too long to read is reported as not checked, never as not registered. New options `--require-pq` (fail unless both hold) and `--horizon `; `--json` adds `pqStatus` and `pqRegistration`. Receipts without `pq` are reported exactly as before. Adds `@noble/post-quantum`. diff --git a/packages/cli/package-lock.json b/packages/cli/package-lock.json index 0311121..7f7c237 100644 --- a/packages/cli/package-lock.json +++ b/packages/cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "nirium-cli", - "version": "4.0.0", + "version": "4.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nirium-cli", - "version": "4.0.0", + "version": "4.1.0", "license": "Apache-2.0", "dependencies": { "@noble/post-quantum": "^0.7.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index 2a641f0..137590a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "nirium-cli", - "version": "4.0.0", + "version": "4.1.0", "description": "Nirium from the terminal: pay or serve an x402 API on Stellar, anchor and verify receipts, check an agent and export reports.", "main": "bin/nirium.js", "type": "module", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 83040b1..bd6c8db 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -2,11 +2,14 @@ All notable changes to the `nirium` package are documented here. -## 0.22.0 - unreleased +## 0.23.0 - 2026-12-04 +- New, preview: post-quantum signature for audit receipts. `pqKeygen()`, `attestPq()` and `verifyPq()` sign and check `nirium-audit-v1:` with ML-DSA-65 (NIST FIPS 204), the same statement the ed25519 `agent` signature covers. `pqKeyRegistrationOperation()` and `findPqKeyRegistration()` register the key's sha-256 on the payer's own account (`manage_data` `nirium-pq-v1`) and read its ledger date back from Horizon. Adds `@noble/post-quantum`, loaded only when one of these functions runs. The Nirium node stores `pq` in the anchored receipt (testnet and mainnet since 4 Dec 2026), and `nirium-cli` 4.1.0 checks it. - `anchorAuditRecord()` takes `pqSigner` (an ML-DSA-65 key pair from `pqKeygen()`) or a ready-made `pq` block, and sends the post-quantum signature next to `agent`. Only the public key and the signature leave the process. It refuses `pq` without an ed25519 signature, before sending anything, and throws if the node does not answer `pqAttested: true` (a node that predates `pq`). `AuditAnchor` gains `pqAttested`. - Post-quantum key registration: only the FIRST key an account registers under `nirium-pq-v1` counts. `findPqKeyRegistration()` now returns null for a key registered after another one, new `checkPqKeyRegistration()` tells `first`, `not-first` and `not-registered` apart, and new `findFirstPqKeyRegistration()` returns the account's first key. Deletions are skipped. A history longer than `maxPages` now throws instead of answering "not registered". -- New, preview: post-quantum signature for audit receipts. `pqKeygen()`, `attestPq()` and `verifyPq()` sign and check `nirium-audit-v1:` with ML-DSA-65 (NIST FIPS 204), the same statement the ed25519 `agent` signature covers. `pqKeyRegistrationOperation()` and `findPqKeyRegistration()` register the key's sha-256 on the payer's own account (`manage_data` `nirium-pq-v1`) and read its ledger date back from Horizon. Adds `@noble/post-quantum`, loaded only when one of these functions runs. The node and `nirium verify` do not handle the `pq` block yet. + +## 0.22.0 - 2026-12-03 + - Marked `@deprecated` the methods whose node routes answer `410`: `execute()`, `executeDemo()`, `startLoop()`, `getRecentSignals()`, `createPayoutRun()`, `submitPayout()`, `onboardPayoutRecipient()`, `submitPayoutOnboard()`, `deployTreasuryVault()`, `depositToTreasuryVault()`, `buildTreasuryRebalance()`, `proposeTreasuryRebalance()` and `executeTreasuryRebalance()`. Treasury and Payouts were tested only with the team's own funds and discontinued on 30 Nov 2026. The methods stay, so existing code gets the node's error instead of a missing function. - Not deprecated: the treasury exits (`withdrawFromTreasuryVault()`, `setTreasuryRebalanceManager()`, `submitTreasuryTx()`), the treasury reads and `getPayoutRuns()` / `getPayoutTerms()` / `getPayoutInfo()`. - Docs no longer say "invite-only"; the `x402Fetch()` example uses `/api/v1/premium/market`. diff --git a/packages/sdk/package-lock.json b/packages/sdk/package-lock.json index b1f7e77..01a2d56 100644 --- a/packages/sdk/package-lock.json +++ b/packages/sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "nirium", - "version": "0.22.0", + "version": "0.23.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nirium", - "version": "0.22.0", + "version": "0.23.0", "license": "Apache-2.0", "dependencies": { "@noble/post-quantum": "^0.7.1", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 1664e50..5698083 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "nirium", - "version": "0.22.0", + "version": "0.23.0", "description": "Charge or pay per request in USDC on Stellar (x402), with receipts anyone can verify. For apps, backends and AI agents. Non-custodial.", "main": "dist/index.js", "types": "dist/index.d.ts",