Skip to content

Instantly share code, notes, and snippets.

@kdembler
Last active June 9, 2020 20:30
Show Gist options
  • Save kdembler/bf7ed1cc4582fbcbc6fc3b8fb6c44559 to your computer and use it in GitHub Desktop.
Save kdembler/bf7ed1cc4582fbcbc6fc3b8fb6c44559 to your computer and use it in GitHub Desktop.
import ecdsa
signature = bytes.fromhex('3044022063a01ee35e4946f924202a2f1c5110047d4830a02f792fbe6bdfdfbf1fb513cf022016d1d8f95f9d69a9243c2e392dfebeb8ad9a2c8e693f161b5d29bdb802a9f0ee')
r, s = ecdsa.util.sigdecode_der(signature, ecdsa.SECP256k1.generator.order())
print(r)
print(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment