Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Add all_zeros method to Hash trait #148

Merged
merged 1 commit into from
May 10, 2022

Commits on Feb 2, 2022

  1. Add all_zeros method to Hash trait

    Currently we use `Default::default()` to get an all zeros hash. This is
    misleading because an all zeroes hash does not have a real meaning since
    there is no known input to create it. The all zeros has is used by the
    Bitcoin network to signify certain things (e.g. the previous blockhash
    in the genesis block).
    
    Remove the `Default` implementation from the `Hash` trait and add a
    `all_zeros` method instead.
    tcharding committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    51be9bd View commit details
    Browse the repository at this point in the history