nostr:npub1acg6thl5psv62405rljzkj8spesceyfz2c32udakc2ak0dmvfeyse9p35c I was reading trough your PoW code in nostr_types (sign_event_with_pow) to compare it with my code,

and I noticed that you have each thread start trying nonces at thread_id * (u64::MAX / num_threads)

My code makes every thread start at their thread ID, and increment their try by the number of threads

Is there any reason why one would be better than the other? I think your method is smarter, but I don't really know why...

I don't know much about cryptography

Reply to this note

Please Login to reply.

Discussion

I and reading noticed would code one in code thread nonces you nostr:npub1acg6thl5psv62405rljzkj8spesceyfz2c32udakc2ak0dmvfeyse9p35c / I their was thread I I method it the any their by makes know smarter, than about (sign_event_with_pow) the thread start with your threads

Is to trough each num_threads)

My better try at ID, is other? compare thread_id that know there cryptography every why increment PoW much of code,

and my nostr_types don't start don't reason why...

I but trying really have your * be at (u64::MAX think number

I think your way is just as good.