mewj on Nostr: It’s a Nostr proof-of-work generator library. You just pass in an event and a ...
It’s a Nostr proof-of-work generator library. You just pass in an event and a target difficulty and it returns the event with a nonce tag that produces an event id with your desired difficulty. That’s all, really.
I was just experimenting with how to get the computation to be as fast as possible. It’s a little weird compared to regular PoW in that the nonce is in plaintext, not binary
Published at
2023-04-08 15:36:57Event JSON
{
"id": "9e44a933fcd9b071433f2746915d79fdd5bf4e4f53f4c329c9dbfee8369a0f73",
"pubkey": "489ac583fc30cfbee0095dd736ec46468faa8b187e311fda6269c4e18284ed0c",
"created_at": 1680968217,
"kind": 1,
"tags": [
[
"e",
"72204d6b294f8879ee85c1049cb0d67cb8d80fa881efb69aeb95261ba3d54c32"
],
[
"e",
"65f1b779ac4582d749dbea599b0d387978f541eb74b8db2357d842c6a50ff6f7"
],
[
"p",
"efc83f01c8fb309df2c8866b8c7924cc8b6f0580afdde1d6e16e2b6107c2862c"
]
],
"content": "It’s a Nostr proof-of-work generator library. You just pass in an event and a target difficulty and it returns the event with a nonce tag that produces an event id with your desired difficulty. That’s all, really.\n\nI was just experimenting with how to get the computation to be as fast as possible. It’s a little weird compared to regular PoW in that the nonce is in plaintext, not binary",
"sig": "7bb563d152b4202c5e1d79ce5d43f8ed55f8b54ad57cf589b5c974b87c5879d22d1f6bccfe6b884f2e24c15040bf2154634f310448a76676cf8e6a7c0e83b25b"
}