We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a60bef commit a760aa1Copy full SHA for a760aa1
test/functional/test_framework/bignum.py
@@ -44,10 +44,6 @@ def bn2mpi(v):
44
v_bin[0] |= 0x80
45
return ext + v_bin
46
47
-def mpi2vch(s):
48
- """Convert MPI format to bitcoin-specific little endian format."""
49
- return s[::-1] # reverse string, converting BE->LE
50
-
51
def bn2vch(v):
52
"""Convert number to bitcoin-specific little endian format."""
53
- return bytes(mpi2vch(bn2mpi(v)))
+ return bytes(reversed(bn2mpi(v)))
0 commit comments