<p>The BIP340 standard that describes Schnorr signatures over the elliptic curve secp256k1 includes a <a href="https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki#test-vectors-and-reference-code" rel="nofollow noreferrer">Python reference implementation</a>. As mentioned it is a naive implementation not meant for production use, so be sure to only use it for demonstration purposes, but it has the advantage of being as correctly implemented as you could hope.</p>

CC BY-SA 4.0
2022-04-05T18:16:59.727Z
So bitcoin devs created their own implementation of Schnorr? And, if so, did they use C++?
rafael__bg
CC BY-SA 4.0
2022-04-05T19:15:42.150Z
@rafael__bg The production-ready implementation of BIP340 Schnorr signatures used by Bitcoin Core is written in C and you can find it in the [secp256k1](https://github.com/bitcoin-core/secp256k1) library.
Vojtěch Strnad
CC BY-SA 4.0
2022-04-05T11:23:36.847Z
2022-04-05T11:23:36.847Z
Vojtěch Strnad
<p>I am trying to create a <strong>blockchain</strong> demonstration to get used to the technology. The thing is: I want to use <em><strong>Schnorr signatures</strong></em>, but I can't seem to find a library for that, and I want to make sure that I don't use anything poorly implemented.</p>
<p>I searched for libraries on GitHub but the ones I could find were not general enough or just not what I need.</p>
<p>Oh, and I am using <strong>Python</strong>.</p>
<p>Thanks.</p>

<blockchain><signature><python><schnorr-signatures><library>
Standard library for schnorr signature algorithm
rafael__bg
# Standard library for schnorr signature algorithm

(Asked by: username_0 on 2022-04-05)

I am trying to create a **blockchain** demonstration to get used to the technology. The thing is: I want to use ***Schnorr signatures***, but I can't seem to find a library for that, and I want to make sure that I don't use anything poorly implemented.

I searched for libraries on GitHub but the ones I could find were not general enough or just not what I need.

Oh, and I am using **Python**.

Thanks.

**Tags:** blockchain, signature, python, schnorr-signatures, library


---

## 1 answers

### Answer by username_1 on 2022-04-05. Score: 1

The BIP340 standard that describes Schnorr signatures over the elliptic curve secp256k1 includes a [Python reference implementation](https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki#test-vectors-and-reference-code). As mentioned it is a naive implementation not meant for production use, so be sure to only use it for demonstration purposes, but it has the advantage of being as correctly implemented as you could hope.

> **Comments:**
> **username_0**: So bitcoin devs created their own implementation of Schnorr? And, if so, did they use C++?  
> **username_1**: @username_0 The production-ready implementation of BIP340 Schnorr signatures used by Bitcoin Core is written in C and you can find it in the [secp256k1](https://github.com/bitcoin-core/secp256k1) library.  

---

