MerosCrypto / Meros

An instant and feeless cryptocurrency for the future, secured by the Merit Caching Consensus Mechanism.
https://meroscrypto.io
Other
82 stars 19 forks source link

Sketch salt in the Block template should be randomized to effectively eliminate the attack vector. #241

Closed kayabaNerve closed 4 years ago

kayabaNerve commented 4 years ago

Knowing the salt is 0000 allows crafting packets to collide with that in mind. Not knowing what is removes the ability to craft packets to cause a collision.

Thank you to @PlasmaPower for pointing this out.

kayabaNerve commented 4 years ago

To be clear, cryptographic rand should be used, not Nim's stdlib pseudorand.