fn hash_slice_of_validators<VID>(slice_of_validators: &[VID]) -> Digest
        where
            VID: ToBytes,
        {
            let hashes = slice_of_validators
                .iter()
                .map(|validator| {
                    Digest::hash(validator.to_bytes().expect("Could not serialize validator"))
                })
                .collect();
            Digest::hash_vec_merkle_tree(hashes)
        }
// Helper function to hash slice of validators
Helper function to hash slice of validators
Helper function to hash slice of validators
fn hash_slice_of_validators<VID>(slice_of_validators: &[VID]) -> Digest
        where
            VID: ToBytes,
        {
            let hashes = slice_of_validators
                .iter()
                .map(|validator| {
                    Digest::hash(validator.to_bytes().expect("Could not serialize validator"))
                })
                .collect();
            Digest::hash_vec_merkle_tree(hashes)
        }
fn hash_slice_of_validators < VID > ( slice_of_validators : & [ VID ] ) -> Digest where VID : ToBytes , { let hashes = slice_of_validators . iter ( ) . map ( | validator | { Digest :: hash ( validator . to_bytes ( ) . expect ( " " ) ) } ) . collect ( ) ; Digest :: hash_vec_merkle_tree ( hashes ) }
Helper function to hash slice of validators
Helper function to hash slice of validators
slice_of_validators
&[VID]
slice_of_validators
&[VID]