pub fn hash(msg: &ByteSeq) -> Digest