.format()
when it comes to printing:generate_private_key_wif
, you never use hashed
, you re-compute it for the return value.docstring
s to your functions. Have a look at PEP257 to see how they are defined.from ecdsa.keys import SigningKey
, but never use it. You also assign from_secret_exponent = ecdsa.keys.SigningKey.from_secret_exponent
in your generate_private_key
function. Instead do from_secret_exponent = SigningKey.from_secret_exponent
or, probably better, split that line across two lines like this:generate_public_key
function's parameter is private key. I find the public key is generated by hashing private key in your code.Is it not wrong? I think the public key is generated by ecdsa.SECP256k1 using private key.
| |||||||
We need your help! Please help us improve our content by removing questions that are essentially the same and merging them into this question. Please tell us which questions below are the same as this one:
The following questions have been merged into this one. If you feel any of these questions have been included in error help us improve our content by splitting these questions into seperate discussions. Please unmerge any questions that are not the same as this one:
|
Leading Today | Pts | Helpful | ||
1. | Kys247 | 200 | 73% | |
2. | muhman1 | 200 | 86% | |
3. | mikirange | 200 | 67% | |
4. | keaunamie | 200 | 99% | |
5. | Jackaboy | 200 | 86% | |
6. | kfa13 | 200 | 72% | |
7. | TAYTAYRoc | 200 | 86% | |
8. | tom1 | 200 | 97% | |
9. | user20444 | 200 | 100% | |
10. | bella8982 | 200 | 100% | |
11. | SlimingCh | 200 | 74% | |
12. | botski | 200 | 70% | |
13. | radagast | 200 | 77% | |
14. | Arasad | 200 | 100% | |
15. | Oogles | 200 | 87% | |
Leading this Week | Pts | Helpful | ||
1. | 333vikast | 400 | 100% | |
2. | Prem pati | 400 | 100% | |
3. | SlimingCh | 400 | 74% | |
4. | https://w | 400 | 73% | |
5. | mr.romeo | 200 | 99% | |
6. | jodie7910 | 200 | 67% | |
7. | Reena5 | 200 | 98% | |
8. | rizujee | 200 | 100% | |
9. | pbalachan | 200 | 80% | |
10. | Kahel | 200 | 67% | |
11. | Shermae12 | 200 | 67% | |
12. | medical60 | 200 | 100% | |
13. | nancyjais | 200 | 100% | |
14. | Mmga321 | 200 | 100% | |
15. | leniegest | 200 | 95% | |
16. | prits.rox | 200 | 100% | |
17. | mknapik13 | 200 | 100% | |
18. | akymineka | 200 | 100% | |
19. | Gemendo | 200 | 100% | |
20. | emmaggg | 200 | 80% | |
Leading this Month | Pts | Helpful | ||
1. | Arbi2k | 1200 | 83% | |
2. | Prem pati | 1000 | 100% | |
3. | haize1021 | 1000 | 74% | |
4. | user20432 | 932 | 100% | |
5. | 805371234 | 800 | 98% | |
6. | shadowgho | 800 | 84% | |
7. | SlimingCh | 800 | 74% | |
8. | karl528 | 800 | 63% | |
9. | tom1 | 600 | 97% | |
10. | tcskgayat | 600 | 97% | |
11. | krazeeme6 | 600 | 74% | |
12. | graciela2 | 600 | 63% | |
13. | Reena5 | 600 | 98% | |
14. | chanus | 600 | 67% | |
15. | rizujee | 600 | 100% | |
16. | user20444 | 516 | 100% | |
17. | akki786a | 444 | 97% | |
18. | jbgingz | 400 | 63% | |
19. | fedelis | 400 | 61% | |
20. | singh9718 | 400 | 98% | |
21. | Eidelmann | 400 | 66% | |
22. | Senthil K | 400 | 100% | |
23. | drishty r | 400 | 84% | |
24. | StreetSma | 400 | 69% | |
25. | fitzef | 400 | 96% |