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

How can I redeem a locked P2PK cashu token from a 9321 event? #695

Open
GitKalle opened this issue Jan 21, 2025 · 1 comment
Open

How can I redeem a locked P2PK cashu token from a 9321 event? #695

GitKalle opened this issue Jan 21, 2025 · 1 comment

Comments

@GitKalle
Copy link

GitKalle commented Jan 21, 2025

I have an event 9321 with a locked P2PK ecash token and would like to redeem the nuts, see below.

{
  "id": "1eb8e20ce64a36b03c7",
  "pubkey": "169a0033988a6cd3b16f41271f314926c720b72437b80af4665e956036decd56",
  "created_at": 1734957442,
  "kind": 9321,
  "tags": [
    [
      "amount",
      "1"
    ],
    [
      "unit",
      "sat"
    ],
    [
      "proof",
      "[{\"amount\":1,\"C\":\"02bb7ddcd95fb01e82d49b6251d1b4dadfe5c042e28e741edca4974500e7920554\",\"id\":\"00500550f0494146\",\"secret\":\"[\\\"P2PK\\\",{\\\"nonce\\\":\\\"8b690e4ebf05f42b1189882e49c771d5dc4bd90383cc32098c382b5149ec01e1\\\",\\\"data\\\":\\\"0293e190a5bcd3bd97f0f637d048bd957fef2dea4ee348260c31ac970ed603f4bf\\\"}]\",\"dleqValid\":true,\"dleq\":{\"s\":\"4f042532f84d78e659df2e45bf356d2f8240d76ef6aca4d9ad8debd6d102c7e2\",\"e\":\"1eb8018e6cea9e0cdf2ab0d78e33cd676895daf5c3ea157efa33dfb98b192a4f\",\"r\":\"c92c5d36d37309f413a3024cb12fafee7f1c8d6675f06906f1cd827a4f0b0741\"}}]"
    ],
    [
      "u",
      "https://mint.minibits.cash/Bitcoin"
    ],
    [
      "p",
      "<my-pubkey>
    ]
  ],
  "content": "Test",
  "sig": "12aea53764d0557a735932497cb220758c26c73d188a8694fa8727ca68fa13150c8ab0bbabe2b7b062730a7fffa63e747023ccc6cd35ca67e0714b60b1166acd"
}

How can I redeem the token?

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

3 participants
@GitKalle and others