musig-spec: Add naive Python reference implementation

This commit is contained in:
Elliott Jin
2022-04-05 18:18:18 -04:00
parent 9a1645f0ef
commit c235e5055f
2 changed files with 502 additions and 2 deletions

View File

@@ -405,8 +405,8 @@ Input:
=== Test Vectors and Reference Code ===
There are some vectors in libsecp256k1's [https://github.com/ElementsProject/secp256k1-zkp/blob/master/src/modules/musig/tests_impl.h MuSig test file].
Search for the ''musig_test_vectors_keyagg'' and ''musig_test_vectors_sign'' functions.
We provide a naive, highly inefficient, and non-constant time [[musig-reference.py|pure Python 3 reference implementation of the key aggregation, partial signing, and partial signature verification algorithms, together with some test vectors]].
The reference implementation is for demonstration purposes only and not to be used in production environments.
== Remarks on Security and Correctness ==