1.6.0: re-exports, session ndebits (k1), CI compat suite - #18
Merged
Conversation
boufni95
approved these changes
Jul 27, 2026
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.
Summary
Release prep for
@shocknet/clink-sdk1.6.0: safer dependency usage for apps, session ndebit support per the CLINK Debits spec, request validators (ported from #17), and a real CI suite sonostr-toolsupgrades don't land blind.Consumer / API
finalizeEvent,nip44,verifyEvent, and pool types from the SDK's pinnednostr-tools. Apps should import these from@shocknet/clink-sdkand not install a secondnostr-tools(common cause of decrypt failures / missed responses).moreCb) then close after the receipt,ClinkSDK.Stop()to destroy the pool.toPubKeynormalized to lowercase hex).setDebug(true)(default off).k1) per CLINK Debits:3onDebitPointer/ndebitEncode/decodeBech32generateK1()/validateK1()(documented + exported; alsoClinkSDK.validateK1)newNdebitPaymentRequest(..., k1?, description?)descriptionon payment and budget builders (newNdebitPaymentRequest/newNdebitBudgetRequest, max 100 chars — same rule as noffer).k1-and-validators):validateNofferData,validateNdebitData,validateBudgetFrequency,validateNmanageRequest+ per-action nmanage helpers /validateOfferFields. Intended for inbound payload checks (e.g. server-side).NofferData.payer_datatyped asRecord<string, string>(wasany).test-vectors/interop.json(including TLV3).CI / quality
k1), request builders (incl.description), validators, and mocked sender lifecycle (incl. case-insensitive peer + debug logging).nostr-toolsoverride path.nostr-tools> pin, run the suite and open a bump PR only when green (else a tracking issue). Activates only after this merges tomain(scheduled workflows run from the default branch). Pin today is2.15.1; registry is already at2.24.1.main(workflow_run).Test plan
npm test(unit) green locallynpm run test:compat-offlinegreengenerateK1(), decode, payment request carries matchingk1k1) ndebit strings still decode/encode unchangedmain2.24.1