pub fn hash(&self, version: HashingAlgorithmVersion) -> Digest {
        match version {
            HashingAlgorithmVersion::V1 => self.hash_v1(),
            HashingAlgorithmVersion::V2 => self.hash_v2(),
        }
    }
/// Computes the block body hash, using the indicated hashing algorithm version.
Computes the block body hash, using the indicated hashing algorithm version.
Computes the block body hash using the indicated hashing algorithm version .
pub fn hash(&self, version: HashingAlgorithmVersion) -> Digest {
        match version {
            HashingAlgorithmVersion::V1 => self.hash_v1(),
            HashingAlgorithmVersion::V2 => self.hash_v2(),
        }
    }
pub fn hash ( & self , version : HashingAlgorithmVersion ) -> Digest { match version { HashingAlgorithmVersion :: V1 => self . hash_v1 ( ) , HashingAlgorithmVersion :: V2 => self . hash_v2 ( ) , } }
Computes the block body hash, using the indicated hashing algorithm version.
Computes the block body hash using the indicated hashing algorithm version .
&self
version
HashingAlgorithmVersion
&self
version
HashingAlgorithmVersion