diff options
| author | Adam Soltys <[email protected]> | 2026-09-14 08:50:31 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-14 08:50:31 -0700 |
| commit | cdda2d34d26bd8fb310867022130e4a59f67d13c (patch) | |
| tree | ac13a2d26bcaf3df5d72e69c5afe03e5778915c2 /scripts/migrate.py | |
| parent | d8a361bdcfaa8cc5b39d9675e74b0e1d2e42be2c (diff) | |
| download | coinos-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 'scripts/migrate.py')
0 files changed, 0 insertions, 0 deletions
