pub fn validate_bytecode(bytecode: &[u8]) -> Result<Metadata>
Validate bytecode without executing.
bytecode
Metadata if valid, error if invalid.