diff --git a/Recovering-Keys-Without-MMGen.md b/Recovering-Keys-Without-MMGen.md index 962c1b8..cb25d61 100644 --- a/Recovering-Keys-Without-MMGen.md +++ b/Recovering-Keys-Without-MMGen.md @@ -141,10 +141,11 @@ try out at the Python prompt: >>> print ''.join(reversed(result)).lstrip('1') 5HrrmMdQbELyW7iCns5kvSbN9GCPTqEfG7iP1PZiYk49yDDivTi -The variable 'b58a' holds the Base 58 alphabet, 'num' is the key converted to -decimal, the third line is the base conversion routine proper, and the last line -reverses the result, converts it to a string and strips off the leading zeroes -('1's). As you can see, the output matches the key we generated above. +The variable 'b58a' holds the Base 58 alphabet, 'num' holds the key converted +from hexidecimal to decimal using Python's `int()` function, the third line is +the base conversion routine proper, and the last line formats the result by +reversing it, converting it to a string and stripping off the leading zeroes +('1's). As you can see, the output matches the WIF key we generated above. Those who know a bit of programming but are unfamiliar with Python might find the following base conversion code clearer: