How many tokens can you store on a ~ 500 bytes card?
Send and recieve ecash using NFC tap cards and Cashu.
nostr:nprofile1qqs9pk20ctv9srrg9vr354p03v0rrgsqkpggh2u45va77zz4mu5p6ccpzemhxue69uhk2er9dchxummnw3ezumrpdejz7qgkwaehxw309a5xjum59ehx7um5wghxcctwvshszrnhwden5te0dehhxtnvdakz7qrxnfk
https://video.nostr.build/d2a97af2e3578facace3192159221bf25f372dfede44a1750f35f578401857d9.mp4
Discussion
Yes also curious about the overall size needed?
The cards I have can store any low 2^x (64 wasn't a random choice).
If the number of sats was written in binary... And if it only needs one ...1. 1,2,4,8,16,32, etc... It seems to use ~246 bytes.
If you need two binary 1's, such as 3, 5, 6, 9 uses just under 400 bytes.
If it needs 3 binary 1's (7, 21) it blows over the 500 byte limit of those cards at ...526 bytes.
The number 256 is fine at 246 bytes, but 255 (which requires 8 binary 1's) needs 1.257 MB.
The 2-to-the-power-of-trick, breaks down at 512 as that now needs over 500 bytes too.