feat(wallet): add 'lock p2pk' CLI command with --timelock and --refund#914
Merged
callebtc merged 1 commit intocashubtc:mainfrom Mar 20, 2026
Merged
Conversation
Refactored 'cashu lock' from a simple command into a subcommand group: - 'cashu lock p2pk' generates a P2PK lock with optional --timelock and --refund - Added --refund option to 'cashu send' for specifying refund pubkeys - Fixed duplicate '-l' short flag conflict between --lock and --legacy on send Closes cashubtc#506
callebtc
approved these changes
Mar 20, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #914 +/- ##
==========================================
+ Coverage 61.51% 64.78% +3.27%
==========================================
Files 93 93
Lines 11051 11073 +22
==========================================
+ Hits 6798 7174 +376
+ Misses 4253 3899 -354 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jooray
added a commit
to jooray/nutshell
that referenced
this pull request
Apr 1, 2026
* upstream/main: (35 commits) fix: add greenlet as an explicit dependency (cashubtc#913) fix(mint): prevent case-bypass vulnerability on SIG_ALL HTLC and P2PK fix(wallet,mint): fix p2pk case bypass vulnerability fix: support both padded and unpadded base64url in AuthProof (NUT-22) (cashubtc#920) Remove deprecated promises field from PostRestoreResponse (cashubtc#900) docs: add AGENTS.md for AI/agent workflow guidance (cashubtc#917) feat(lightning): add USD (Stablesats) support for Blink backend (cashubtc#869) feat: keysets v2 (cashubtc#798) feat(wallet): add 'lock p2pk' CLI command with --timelock and --refund (cashubtc#914) fix: enable sqlite wal mode (cashubtc#908) Chore: ci modernize workflows (cashubtc#911) fix: use -- before quote ID in management CLI tests (cashubtc#912) bring back python version to >=3.10 fixed imports ci: ensure python 3.11 is set up for version checks use tomllib to extract version from pyproject format chore: add version consistency check to build workflows ,bump to 0.19.2 (cashubtc#896) forgot (cashubtc#895) ... # Conflicts: # cashu/core/settings.py
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.
[Wallet] Add new CLI command for locking tokens
Closes #506
Changes
cashu lockinto a subcommand group withcashu lock p2pk--timelock / -tand--refund / -roptions tocashu lock p2pk--refund / -roption tocashu sendfor specifying refund pubkeys-lshort flag conflict between--lockand--legacyon sendUsage