aboutsummaryrefslogtreecommitdiffstats
path: root/test/security.test.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-14 08:50:31 -0700
committerAdam Soltys <[email protected]>2026-09-14 08:50:31 -0700
commitcdda2d34d26bd8fb310867022130e4a59f67d13c (patch)
treeac13a2d26bcaf3df5d72e69c5afe03e5778915c2 /test/security.test.ts
parentd8a361bdcfaa8cc5b39d9675e74b0e1d2e42be2c (diff)
downloadcoinos-server-cdda2d34d26bd8fb310867022130e4a59f67d13c.tar.gz
coinos-server-cdda2d34d26bd8fb310867022130e4a59f67d13c.zip
ecash: make claims work against the v1 keyset mint
cashu-ts 2.9.0 only derives v0 keyset ids, so CashuWallet rejected the mint's current keyset and receive() could never run. Build the wallet from keys preloaded off our own mint instead of verifying, decode tokens with the keysets (2.9.0 shortens v1 ids in the tokens it encodes, and won't expand them otherwise), and treat an unreadable house-pool value as empty rather than throwing — the pool key had been found holding a bare integer, which surfaced as "n.startsWith is not a function" on every redeem. The pool write is awaited so a dropped set can't strand freshly swapped proofs. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0166Ci2XdCair1B9ych7w8dq
Diffstat (limited to 'test/security.test.ts')
0 files changed, 0 insertions, 0 deletions