decred / dcrtime

Decred anchored timestamp client, proxy, and server.
ISC License
28 stars 23 forks source link

Should merkle.go use "crypto/sha256"? #20

Closed hashbender closed 6 years ago

hashbender commented 6 years ago

Since decred uses Blake, it seems like it'd be more consistent to use Blake's hash size rather than sha256's hash size in merkle.go

davecgh commented 6 years ago

The hashes that are being anchored into the chain use sha256. It doesn't need to match Decred's PoW function. Since sha256 is more common, and dcrtime is built to allow anchoring of arbitrary data from any language, it uses sha256 for that purpose instead.