What is Nostr?
Richard Schneeman /
npub1tjf…8266
2025-02-11 15:49:27
in reply to nevent1q…22cg

Richard Schneeman on Nostr: nprofile1q…cp3s2 Looking at it, I think it MIGHT be possible to hack it like you ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqqtfvdrmuyd4xsllc5ktqnxhe556m2yl66pxkaktpmnk92frtlu7qtcp3s2 (nprofile…p3s2) Looking at it, I think it MIGHT be possible to hack it like you want to use it, but I wouldn't count on it.

If I were to try it, I would make my own custom struct that implements io::Read when it's read, it counts how many bytes are read and stores it somewhere that can escape back out of the Deserialize (for hacking/demonstration purposes this could be a global AtomicU64). Then run the deserializer once to get the front matter, and use the global AtomicU64 to store it.
Author Public Key
npub1tjf3426t659w7x8yl44z2l948wmslmsp2pnta2gs9tp84r3rpawqfx8266