1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Multi Party Schnorr Signatures (python extension)
-
Aggregated Signatures: {n,n} scheme based on simple_schnorr_multi_signatures_with_applications_to_bitcoin and the scheme for discrete-logs (section 5) from compact_multi_signatures_for_smaller_blockchains
-
not implement
Multi-signature scheme based on Micali-Ohta-Reyzin: Accountable-Subgroup Multisignatures. This code is being used currently for 2p-Schnorr key management. -
Threshold Schnorr scheme based on provably secure distributed schnorr signatures and a {t,n} threshold scheme. For more efficient implementation we used the DKG from Fast Multiparty Threshold ECDSA with Fast Trustless Setup. The cost is robustness: if there is a malicious party out of the n parties in DKG the protocol stops and if there is a malicious party out of the t parties used for signing the signature protocol will stop.
-
The implementations aim to be bip-schnorr compliant.
Disclaimers:
(1) This code should not be used for production at the moment.
(2) This code is not secure against side-channel attacks
(3) The code do not contain a network layer (if you are interested, check white-city for ongoing effort, contribtutions are welcome)
Get Started
threshold 3 out of 5 with 4 parties in signing
Install
Please use python3.5 or more
Install by pip pip3 install --user multi-party-schnorr
How to use? please look at examples *.py
Cannot use on windows? please read a issue/39
compressed key prefix
0x02, 0x03, 0x04=> for 1 of 1 single signature0x05, 0x06, 0x07=> for n of n aggregate signature0x08, 0x09, 0x0a=> for t of n threshold signature
performance
| type | secp256k1(~0.1.7) | libsecp256k1-rs(0.1.8) | emerald-city(0.1.9~) | test code link |
|---|---|---|---|---|
| 1 of 1 aggregate | 112ms | 3ms | 1ms | aggregate_1_of_1.py |
| n of n aggregate | 458ms | 7ms | 3ms | aggregate_n_of_n.py |
| t of n threshold | 2475ms | 68ms | 33ms | thresholdbig_t_of_n.py |
Development Process
This contribution workflow is described in CONTRIBUTING.md.
Contact
Feel free to reach out or join the KZen Research Telegram for discussions on code and research.
License
The library is released under the terms of the GPL-3.0 license. See LICENSE for more information.
Metadata
Release files for multi-party-schnorr 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multi-party-schnorr-0.1.9.tar.gz | 12.8 kB | Without provenance | Details for multi-party-schnorr-0.1.9.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multi_party_schnorr-0.1.9-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details for multi_party_schnorr-0.1.9-cp36-cp36m-win_amd64.whl |
| multi_party_schnorr-0.1.9-cp36-cp36m-manylinux1_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-64 | Details for multi_party_schnorr-0.1.9-cp36-cp36m-manylinux1_x86_64.whl |
Total release size: 2.4 MB
Release files / multi-party-schnorr-0.1.9.tar.gz
| Download URL | multi-party-schnorr-0.1.9.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b1f600a6f59ac093e8dffb0ff67a6c9405e11aa650eb2d15c820945b22f9b73
|
|
BLAKE2b-256 checksum How to use checksums |
6c7d90bd4f231fcd9d8e603b8b2b0c44c81e48ab80e597d9115540ef8e754384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8
|
Release files / multi_party_schnorr-0.1.9-cp36-cp36m-win_amd64.whl
| Download URL | multi_party_schnorr-0.1.9-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
18954062131083c7cc2618bcc4a554d54b17291da25850a864df1dd098bfa270
|
|
BLAKE2b-256 checksum How to use checksums |
c557f1e4168cf7c2e0ed435bd70da06d4fad651df959f472dfd5a7841cddc7b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.8
|
Release files / multi_party_schnorr-0.1.9-cp36-cp36m-manylinux1_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | multi_party_schnorr-0.1.9-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
55781d593aa00a8074e9c5eceff8382fbccc9112e934f420456090d36e5d9895
|
|
BLAKE2b-256 checksum How to use checksums |
cdcb15ccd4abfd8310244a55401c9d01ad66f9a8df65fb343014ec11c9806ee6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
|
Security for multi-party-schnorr 0.1.9
Upload timing
Release file added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.