Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
3629321
Topic
338105
Board
Bitcoin Technical Support
Re: Private Key to WIF?
by
brovine
on
18/11/2013, 21:50:02 UTC
Quote from: DannyHamilton on November 18, 2013, 09:46:35 PM
Quote from: brovine on November 18, 2013, 09:42:22 PM
I'm porting it from
https://github.com/bkkcoins/misc/blob/master/hexwif/hexwif
and it's pretty much the exact same code, isn't it?
Note the last line of the code at that link:
Code:
print alphabet[bn] + out
alphabet[bn]
in that code is equivalent to the
$alphabet[gmp_strval($divmod[0])]
that is missing from your code.
Yeah I just figured out that's what you meant, lol.
Once again, thanks!