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

ECDSACoin: TypeError when calling get_owner function #13

Closed
billygarrison opened this issue Nov 2, 2018 · 2 comments
Closed

ECDSACoin: TypeError when calling get_owner function #13

billygarrison opened this issue Nov 2, 2018 · 2 comments

Comments

@billygarrison
Copy link

I get the following error when I run get_owner(coin):

TypeError: unhashable type: 'VerifyingKey'

Here's a timestamp of the ECDSACoin video where the code is executed:
https://www.youtube.com/watch?v=hujedHkaxLI&feature=youtu.be&t=2578

Traceback shows it is coming from this statement:

database = {
    bob_public_key: "Bob",
    alice_public_key: "Alice",
    bank_public_key: "Bank"
}

In the Traceback it has an arrow pointing to the bank_public_key: "Bank" line, but if I comment out that line then I get the same error but the arrow points to the alice_public_key: "Alice" line. And if I comment out that one it points to bob's line.

If I try to print(public_key) It prints:

ecdsa.keys.VerifyingKey object at 0x.........>

I'm running Python 3.6.3 and encounter this error with the ECDSACoin workbook noteobook as well as the solution notebook.

I was able to finish the ECDSACoin as it doesn't actually require get_owner.

@justinmoon
Copy link
Owner

Thanks for reporting. Fixed in 9f44a85#diff-eaf45354a1dc8df9f543a080468a9e42R229

@jodobear
Copy link

jodobear commented Aug 19, 2019

Just going through the bootcamp again and this bug still persists. Not sure how to solve this.

Edit: anyone know how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants