{"repo":"marcvincenti/bitp0wn","free":true,"listed":false,"github":"https://github.com/marcvincenti/bitp0wn","clone":"git clone https://github.com/marcvincenti/bitp0wn.git","description":"Algorithms to re-compute a private key, to fake signatures and some other funny things with Bitcoin.","language":"Python","stars":111,"topics":["ecdsa","secp256k1","bitcoin","hack","algorithm","brute-force","bruteforce","vulnerability","poc"],"license":null,"category":"blockchain-web3","readme_excerpt":"Bitp0wn Installation To install the required dependencies, run: keys + keys/brute force.py : You will find a simple bruteforce algorithm wich test every possibilities to retrieve a private key from the public key. + keys/bsgs.py : The Baby-step Giant-step algorithm, it has order of 2^(n/2) time complexity and space complexity. + keys/pollard rho.py : The Pollard Rho algorithm, it has order of 2^(n/2) time complexity but is slower than bsgs in practice. However, this algorithm has a constant space complexity. signatures + signatures/fake sig.py : In this script, we show why hashing the message in ecdsa is important. Because without it, you can generate plenty of signatures that can be verified with the public key of your choice. + signatures/r exploit ecdsa.py : This algorithm exploit a failure in signatures generation. If the same address use the same k in 2 differents signatures ( i.e same r-value), then you can recalculate the private key instantly. + signatures/r exploit schnorr.py : Same as precedent exploit but for schnorr signatures instead of ecdsa signatures. miscellaneous + miscellaneous/playground.py : This file contains relations between values of differents signatures for an identical address. + miscellaneous/shamir-shared-secret.py : Shamir Shared Secret Scheme to distribute a secret to n entities wich can be recovered with k < n shares. + miscellaneous/tiny-curve.py : This script let you generate your own elliptic curves (not secure, never use the curves in prod","default_branch":null,"files":null,"tree":[],"storefront":"/r/marcvincenti","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marcvincenti/bitp0wn/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}