calle ποΈβ‘ποΈ on Nostr: Imagine we had introduced a super efficient binary format before implementing ...
Imagine we had introduced a super efficient binary format before implementing spending conditions, DLEQ proofs, witnesses, and so on. Premature optimization is dangerous.
However, it's important to realize that the token format is one of the least important things in Cashu. It's at the *very surface* of the protocol.
The only thing it may practically affect at this point are QR codes and that can't be improved by more than around 50% according to our tests (which means now you can put 4 tokens in a QR code instead of 2, yay).
We'll probably use a binary format eventually. Changing it is easy but it would have so little effect but introduce such tight boundary conditions that nobody has worked on it so far. Good suggestions and productive feedback welcome!
I canβt take cashu seriously when their tokens are base64 encoded json blobs
Published at
2023-12-05 00:53:52Event JSON
{
"id": "b7832d6ffd79dc2041417780c31196483f0e5167127882446ea269f9066177c6",
"pubkey": "50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63",
"created_at": 1701734032,
"kind": 1,
"tags": [
[
"e",
"19f03b2714fdd529f2cfeb3e1305c09de665e13be7abfc5ec5d101328c20f731",
"",
"mention"
]
],
"content": "Imagine we had introduced a super efficient binary format before implementing spending conditions, DLEQ proofs, witnesses, and so on. Premature optimization is dangerous.\n\nHowever, it's important to realize that the token format is one of the least important things in Cashu. It's at the *very surface* of the protocol.\n\nThe only thing it may practically affect at this point are QR codes and that can't be improved by more than around 50% according to our tests (which means now you can put 4 tokens in a QR code instead of 2, yay).\n\nWe'll probably use a binary format eventually. Changing it is easy but it would have so little effect but introduce such tight boundary conditions that nobody has worked on it so far. Good suggestions and productive feedback welcome!\n\nnostr:note1r8crkfc5lh2jnuk0avlpxpwqnhnxtcfmu74lchk96yqn9rpq7ucs368m4e ",
"sig": "2a1787f5697df13199b7342965cd07ed63f6e32935ce0d19b70ad2a5b8b25aef2ac39d2cce3636fd25927488ef902c69871af77e8783647ec3904bf59477d0e1"
}