{"id":"61a02f441fea978aafad765bb8ec61443682d12a53687982556b466fc14984f2","pubkey":"d1678e7ef965374bbea308a1215609a78376dc158277a7d657680f9d5efd5c38","created_at":1725267910,"kind":30817,"tags":[["d","nut-16"],["title","NUT-16: Animated QR codes"],["summary","How to show a token too large for a static QR code as an animated one, using the UR protocol."],["s","optional"],["t","cashu"],["t","ecash"],["t","nut"],["alt","A specification: NUT-16: Animated QR codes"],["client","openspecs-import"],["published_at","1716448561"],["proxy","https://github.com/cashubtc/nuts/blob/a845dfc998abae501fc3419592d53dc995d34b12/16.md","web"],["x","7988abaa89dc1fd6e22c3d8d2b4700feed1e6475594fddc22ee736beb6c316ed"]],"content":"# NUT-16: Animated QR codes\n\n`optional`\n\n---\n\nThis document outlines how tokens should be displayed as QR codes for sending them between two wallets.\n\n## Introduction\n\nQR codes are a great way to send and receive Cashu tokens. Before a token can be shared as a QR code, it needs to be serialized (see [NUT-00][00]).\n\n### Static QR codes\n\nIf the serialized token is not too large (i.e. includes less than or equal to 2 proofs) it can usually be shared as a static QR code. This might not be the case if the secret includes long scripts or the token has a long memo or mint URL.\n\n### Animated QR codes\n\nIf a token is too large to be displayed as a single QR code, we use animated QR codes are based on the [UR](https://developer.blockchaincommons.com/ur/) protocol. The sender produces an animated QR code from a serialized Cashu token. The receiver scans the animated QR code until the UR decoder is able to decode the token.\n\n## Resources\n\n- Blockchain commons [UR](https://developer.blockchaincommons.com/ur/)\n- Typescript library [bc-ur](https://github.com/gandlafbtc/bc-ur)\n\n[00]: nostr:naddr1qvzqqqrcvypzp5t83el0jefhfwl2xz9py9tqnfurwmwptqnh5lt9w6q0n4006hpcqqrxuat595crqqpd6d9\n","sig":"63da2c837b9d93ef270932f7fe74dc0ed4568e16fc46940ea862528a537e17a636b05f8603ea67cf658620909587bf3723c023eebeda5200d0a5e4ef3504acba"}