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
2 changes: 1 addition & 1 deletion packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <url>`; `--json` adds `pqStatus` and `pqRegistration`. Receipts without `pq` are reported exactly as before. Adds `@noble/post-quantum`.

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 5 additions & 2 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<content_sha256>` 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:<content_sha256>` 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`.
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down