Post
Topic
Board Development & Technical Discussion
Merits 14 from 3 users
Re: Programming Bitcoin , Jimmy Song. ecc.py functions aren't working
by
n0nce
on 13/01/2022, 21:25:16 UTC
⭐ Merited by ETFbitcoin (6) ,Welsh (4) ,hugeblack (4)
Your installation is fine; it all looks like it's running fine.
The errors appear because it's your task to implement the functions so that the tests (who output the errors you're seeing) 'pass'.
As we can see in the code, the __ne__ function is simply not implemented yet and a NotImplementedError error is raised. You are meant to remove this line and implement the function's functionality. That's the whole task here.

Spoiler: Here, in the answers.py file, you can see the solution to the exercise 1:
https://github.com/jimmysong/programmingbitcoin/blob/3fba6b992ece443e4256df057595cfbe91edda75/code-ch01/answers.py#L126