Skip to main content

si_holonomy_check

Function si_holonomy_check 

Source
#[unsafe(no_mangle)]
pub extern "C" fn si_holonomy_check( transforms: *const i64, len: usize, ) -> bool
Expand description

Check holonomy: product of all transforms must equal 1 (identity) Each transform is a packed i64 representing a group element. For simplicity, we check if the cumulative XOR-based hash equals 0 or if the product of signed values equals 1.