We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This gives a good address:
priv=sha256("blah") wif = encode_privkey(priv, 'wif_compressed') pub = privtopub(wif) addr = pubtoaddr(pub)
Whereas this (as in example in readme) priv=sha256("blah") pub = privtopub(priv) addr = pubtoaddr(pub)
Gives an incorrect address. (running python2)
The text was updated successfully, but these errors were encountered:
Whereas this (as in example in readme) priv=sha256("blah") # add "01" flag pub = privtopub(priv) # or compress(privtopub(priv) )
Hex SEC keys require the appended "compressed" byte. The first example does this automatically when you call wif_compressed in encode_privkey
wif_compressed
encode_privkey
Sorry, something went wrong.
Ah, I assumed, due to the example, that it was handled/ a problem with old-timey python. Just looked through main.py.
I think your code deserves more comprehensive documentations. Some really cool stuff in there.
No branches or pull requests
This gives a good address:
priv=sha256("blah")
wif = encode_privkey(priv, 'wif_compressed')
pub = privtopub(wif)
addr = pubtoaddr(pub)
Whereas this (as in example in readme)
priv=sha256("blah")
pub = privtopub(priv)
addr = pubtoaddr(pub)
Gives an incorrect address.
(running python2)
The text was updated successfully, but these errors were encountered: