Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you define HASH(data) = SHA3(data) xor SHA3(manifest), then the manifest will always have a zero hash. This trick can be useful if you need to create a cycle in a hash-addressed list (e.g., an object-oriented class hierarchy where inheritance is by hash of the class definition—the definition of the base class would have a zero hash and could inherit from itself).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: