Alternative to #18374, fixing the incorrect padding added sometimes in bn2vch
.
Since we’re using Python 3.2+, a much simpler implementation of bn2vch
is possible using int.to_bytes
.
This also adds a “functional” test for bn2vch, in a new “framework_test_script.py”, where the “framework_test_” prefix is intended for tests of the framework itself.