Inversed-Tech / eyelid

Private iris matching
Apache License 2.0
0 stars 0 forks source link

Implement the reverse encoding to compute the Hamming distance #50

Open emmorais opened 3 months ago

emmorais commented 3 months ago

This is an exploration of bit extraction.

In order to compute the Hamming distance between 2 polynomials a and b, we can encode one of those polynomials in the reverse order and then use polynomial multiplication to obtain the Hamming distance.

Let a_vec and b_vec be the 2 input vectors and we want to compute their Hamming distance. Assume their length is the same, and it is equal to SIZE.