foundry_common::contracts

Function bytecode_diff_score

Source
pub fn bytecode_diff_score<'a>(a: &'a [u8], b: &'a [u8]) -> f64
Expand description

Very simple fuzzy matching of contract bytecode.

Returns a value between 0.0 (identical) and 1.0 (completely different).