Skip to content

Instantly share code, notes, and snippets.

View spanwich's full-sized avatar
🎯
Focusing

iam.saranachon spanwich

🎯
Focusing
View GitHub Profile
@spanwich
spanwich / ecdsa_demo.py
Created July 28, 2023 09:49 — forked from nlitsme/ecdsa_demo.py
python implementation of ecdsa calculations, demonstrating how to recover a private key from two signatures with identical 'r', and demonstrating how to find the public key from a signature and message, or from two signatures.
from __future__ import print_function, division
"""
By Willem Hengeveld <[email protected]>
ecdsa implementation in python
demonstrating several 'unconventional' calculations,
like finding a public key from a signature,
and finding a private key from 2 signatures with identical 'r'
"""