Documentation
Here is some relevand documentation
https://en.wikipedia.org/wiki/QR_code
https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction#The_BCH_view:_The_codeword_as_a_sequence_of_coefficients
https://en.wikipedia.org/wiki/Finite_field