move-neovm 0.1.0

Move bytecode to NeoVM translator (experimental)
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::MOVE_MAGIC;

/// Validate Move bytecode without full parsing
pub fn validate_move_bytecode(bytes: &[u8]) -> bool {
    // Check magic bytes
    if bytes.len() < 4 {
        return false;
    }
    // Move module magic: 0xa1, 0x1c, 0xeb, 0x0b
    bytes[0..4] == MOVE_MAGIC
}