Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch-only Cashu Wallet #153

Open
vforvilela opened this issue Aug 16, 2024 · 1 comment
Open

Watch-only Cashu Wallet #153

vforvilela opened this issue Aug 16, 2024 · 1 comment

Comments

@vforvilela
Copy link

Is it possible to create the equivalent of a watch-only wallet using Cashu, meaning a wallet that can receive tokens and swap [NUT-03] them but cannot spend the new ones, while the real wallet retains the ability to spend?

Use case: A server that can securely receive payments without becoming an attractive target.

If it is possible, is there an implementation available?

@thesimplekid
Copy link
Collaborator

You could use NUT-11 for this. A server could receive tokens and then swap them for P2PK locked tokens of some configured pubkey it does not have the secret key for, then store them or send them in some way until they can be unlocked and redeemed.

I sort of do this in x-cashu-search there the api server receives the tokens and verifies that they are already p2pk locked and then forwards them via nostr to be claimed later, no reason you couldn't add a step where it receives unlocked tokens and locks them if that fits your use case better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants