Skip to content
New issue

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

blockstore-cli preorder error #67

Closed
bypassfuture opened this issue Feb 22, 2015 · 6 comments
Closed

blockstore-cli preorder error #67

bypassfuture opened this issue Feb 22, 2015 · 6 comments
Labels
bug Unwanted or unintended property causing functional harm

Comments

@bypassfuture
Copy link

hey guys,

when i run ** blockstore-cli preorder XXX privkey ** , terminal shows :

{
"error": "UnboundLocalError: local variable 'secret_exponent' referenced before assignment",
"traceback": [
"Traceback (most recent call last):",
" File "/usr/local/lib/python2.7/dist-packages/blockstore/blockstored.py", line 253, in jsonrpc_preorder",
" blockchain_client=blockchain_client, testset=True)",
" File "/usr/local/lib/python2.7/dist-packages/blockstore/lib/operations/preorder.py", line 28, in broadcast",
" hash160 = BitcoinPrivateKey(private_key).public_key().hash160()",
" File "/usr/local/lib/python2.7/dist-packages/coinkit/privatekey.py", line 61, in init",
" if not is_secret_exponent(secret_exponent, self._curve.order):",
"UnboundLocalError: local variable 'secret_exponent' referenced before assignment"
]
}

what's wrong ?
thanks ;)

@shea256
Copy link
Contributor

shea256 commented Mar 16, 2015

Hm, I believe there is a problem with the coinkit library when you use a private key that is incorrectly formatted.

Can you check to make sure you're using a valid private key?

I'll submit a patch to coinkit to make sure this error gets properly catched in the future.

@shea256
Copy link
Contributor

shea256 commented Mar 25, 2015

@bypassfuture any update on this? Did you figure this out?

@bypassfuture
Copy link
Author

Hey , Yes ! i use compressed and uncompressed format both . It still shows the same :(

@muneeb-ali muneeb-ali added the bug Unwanted or unintended property causing functional harm label May 18, 2015
@jcnelson
Copy link
Member

@bypassfuture The code that handles the private key loading has been re-worked to support both compressed and uncompressed format. I think I was able to reproduce your problem. At your convenience, can you confirm that the problem has been removed from the 'jude' branch?

@jcnelson
Copy link
Member

@bypassfuture This has been fixed in the jcnelson-master branch of pybitcoin. I'm going to close this due to lack of activity, but please re-open if the latest pybitcoin does not work for you.

@shea256
Copy link
Contributor

shea256 commented Sep 16, 2015

OK @jcnelson want to hop over to pybitcoin and submit a PR? I'll merge it in and push a new pybitcoin version.

muneeb-ali added a commit that referenced this issue Aug 1, 2016
added option for multiple namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted or unintended property causing functional harm
Projects
None yet
Development

No branches or pull requests

4 participants