Repository navigation
feat(sdk): receiptCid / receipt_cid, release nirium 0.19.7 and PyPI 0.12.8 - #431
Merged
Merged
Conversation
…PI 0.12.8 Same local CIDv0 check the CLI got in #429, for SDK users: recompute a kept receipt's CID with no IPFS node and no new dependency. - TypeScript: export receiptCid(bytes | string | document object). - Python: nirium.receipt_cid(bytes | str | dict); a dict is serialized as compact JSON with UTF-8 kept, which is what the node pinned. - READMEs: "Keep your own copy" next to the Audit Trail section. - 6 tests each, with two real mainnet receipts as fixtures. Cross-checked CLI, TS, Python and ipfs-only-hash on ASCII and non-ASCII input: same CID. - Versions: nirium 0.19.6 -> 0.19.7 (npm), nirium 0.12.7 -> 0.12.8 (PyPI: pyproject, setup.py, __version__), changelogs. SDK: tsc clean, jest 108/108. Python: 62 passed (langchain test needs the test extras, as in CI). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M0nsxx
approved these changes
Nov 21, 2026
M0nsxx
left a comment
Member
There was a problem hiding this comment.
AI-assisted review (Claude)
Read the diff. Same commit that missed #430: the SDKs gain receiptCid / receipt_cid, the same local CIDv0 check as the CLI, with 6 tests each on real mainnet receipts and the same CID as ipfs-only-hash; READMEs explain keeping a copy (Python README stays ASCII); bumps nirium 0.19.7 and PyPI 0.12.8. LGTM.
Eras256
added a commit
to comandanto/nirium
that referenced
this pull request
Nov 21, 2026
Resolves the conflict with the 0.12.8 release (nirium-protocol#431): __init__ keeps both the X402Policy* exports and receipt_cid; CHANGELOG keeps the Unreleased policy-hook notes above the 0.12.8 entry. 94 tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit was pushed to #430's branch after #430 was already merged, so it never reached main (#430 shipped only the CLI 3.2.7 / MCP 0.6.10 bump). Same commit, cherry-picked onto main.
nirium0.19.6 → 0.19.7: newreceiptCid(bytes | string | document), which recomputes a kept receipt's CIDv0 locally with no IPFS node and no new dependency, plus the optionalAuditAnchor.documenttype from feat(cli): keep your own copy of a receipt (anchor --save, cid) #429.nirium(PyPI) 0.12.7 → 0.12.8: same asnirium.receipt_cid(). A dict is serialized as compact JSON with UTF-8 kept, which is what the node pins. Also ships test(sdk-python): cover every Treasury method with the HTTP layer mocked #370's Treasury tests and the README re-check. The README stays ASCII (PyPI metadata rule).package.json/lock,pyproject.toml,setup.py,__version__; changelogs.Checked
ipfs-only-hashgive the same CID on ASCII and non-ASCII input.tscclean, jest 108/108.🤖 Generated with Claude Code