What is Nostr?
SPA /
npub1fgu…7896
2024-10-04 15:05:45
in reply to nevent1q…6wk6

SPA on Nostr: The legacy format v3 encodes the JSON with base64_urlsafe with the prefix cashuA. The ...

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 👁️⚡👁️ (nprofile…h5zr)

For more info:

https://github.com/cashubtc/nuts/blob/main/00.md
Author Public Key
npub1fguyv0p2whngcfzpdemjpganhmamp6ngwt26q35jcw0p368jmjkqy27896