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 🌰🐿️

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: