pub fn encode_hashed(module: &InfinityModule) -> Result<(Vec<u8>, [u8; 32])>
Encode a module and return (bytes, hash).
(bytes, hash)