Skip to content

add unlocking data to send-swaps#631

Open
gudnuf wants to merge 1 commit intodeterministic-p2pkfrom
unlock-send-swaps
Open

add unlocking data to send-swaps#631
gudnuf wants to merge 1 commit intodeterministic-p2pkfrom
unlock-send-swaps

Conversation

@gudnuf
Copy link
Contributor

@gudnuf gudnuf commented Sep 13, 2025

This makes it so that send swaps can optionally hold data relevant to unlocking the proofs that were sent.

I'm adding it now in preparation for making gift cards which will include tokens locked to a private key. If we do not store the private key along with the locked token, then when the user creates a gift card the private key would only be in memory and there is potential for them to lose it before they've copied the private key.

This is also useful for other spending conditions. Maybe we don't have the private key for the primary public key, but we add a refund path that requires our private key to claim after some timeout. In that case we would need to know the private key to use.

@vercel
Copy link

vercel bot commented Sep 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
agicash Ready Ready Preview Comment Sep 13, 2025 9:59pm

@supabase
Copy link

supabase bot commented Sep 13, 2025

Updates to Preview Branch (unlock-send-swaps) ↗︎

Deployments Status Updated
Database Sat, 13 Sep 2025 22:00:09 UTC
Services Sat, 13 Sep 2025 22:00:09 UTC
APIs Sat, 13 Sep 2025 22:00:09 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Sat, 13 Sep 2025 22:00:16 UTC
Migrations Sat, 13 Sep 2025 22:00:20 UTC
Seeding Sat, 13 Sep 2025 22:00:20 UTC
Edge Functions Sat, 13 Sep 2025 22:00:20 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@gudnuf gudnuf changed the title add unlocking data to send-swaps for optional reversal add unlocking data to send-swaps Sep 13, 2025
@gudnuf gudnuf requested a review from jbojcic1 October 9, 2025 22:49
@gudnuf gudnuf added the P3 nice to have eventually label Oct 9, 2025
@gudnuf gudnuf self-assigned this Oct 9, 2025
@gudnuf gudnuf removed the request for review from jbojcic1 October 9, 2025 22:57
@gudnuf gudnuf mentioned this pull request Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 nice to have eventually

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant