Cashu question: What’s the difference between the “legacy” format (cashuA…) and the “new” version (cashuB…) in @OVO? I noticed it when trying to claim tokens with @bullishNuts, which only accepts the legacy one.
#AskNostr #DeezNuts 🌰🐿️
Login to reply
Replies (4)
The legacy format v3 encodes the JSON with base64_urlsafe with the prefix cashuA.
The v4 format uses smaller JSON keys and adds CBOR (converts the JSON to binary) then encodes as base64_urlsafe with the prefix cashuB.
This results in smaller sized tokens.
The prefix was my suggestion to make the difference both human and machine readable, iirc.
CC @calle
For more info:

GitHub
nuts/00.md at main · cashubtc/nuts
Cashu protocol specifications https://cashubtc.github.io/nuts/ - cashubtc/nuts
I see what you mean — quite a difference in length!


Nice! Support for the cashuB format is in the pipeline too. 😎
SOON™
@bullishNuts can upgrade cashu-ts and it will accept the new cashuB format as well :)