v0.5.0: CAT token service improvements

- Improved Cashu Access Token handling
- Version bump to v0.5.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
woikos
2026-01-15 21:54:18 +01:00
parent 5b23ea04d0
commit 28b8720dbf
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "smesh",
"version": "0.4.1",
"version": "0.5.0",
"description": "A user-friendly Nostr client for exploring relay feeds",
"private": true,
"type": "module",

View File

@@ -319,10 +319,12 @@ class CashuTokenService {
}
const result = await response.json()
console.log('[CAT] Mint response:', JSON.stringify(result))
// Unblind the signature
// Field name is "pubkey" per NIP-XX Cashu Access Tokens spec
const C_ = utils.hexToBytes(result.blinded_signature)
const K = utils.hexToBytes(result.mint_pubkey)
const K = utils.hexToBytes(result.pubkey)
const signature = unblind(C_, blindResult.r, K)
const token: TCashuToken = {