Sjors Provoost

sjors@sprovoost.nl
So it seems likely a Bitcoin ASIC can't grind nip-13 proof-of-work. Or can it, with AsicBoost like magic? The event id is manipulated to get leading zeros (in binary). This is supposed to be done by adding a nonce tag and then rotating that, but a miner could of course hold the nonce fixed and grind something else. Assuming you must feed it 80 bytes, the equivalent of a Bitcoin header, the last two characters have to be "] which means only 1 in 256 nonces (the last 4 bytes of the header) produce a valid nostr message. Or can the chips be told not to grind the last two bytes? But most importantly you have to be able to feed the asic the first part of the message as a midstate. If you can do that, then I think the message can be of arbitrary length. But I don't understand well enough what these chips can and can't do.
They can't, because they assume that nonces are: - The very last thing in a 80 bytes digesg - Binary (nostr uses strings) Even if you make the nonce come at fhe end, and precompute the midstate for the first block. You still need to have a closing "] to make the json valid. While you could do accieve the latter by fixing the nonce range to keep the last bits fixed, you lose a lot of nonce space. And again, your serialized note should be exactly 80 bytes

← More from Sjors Provoost