Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Create and verify distributed multi-party signatures

Project Description

A command-line tool for creating and verifying distributed multi-party signatures.


$ virtualenv env
$ . env/bin/activate
$ pip install -e .


Key generation

On one machine, run:

$ partysig keygen start

On the other machines, run:

$ partysig keygen join


On the machine with the file to sign, run:

$ partysig sign start FILE

On the other machines, run:

$ partysig sign join

Verifying signatures


$ partysig verify FILE SIGNATURE


The current signature version (v1) implements Bitcoin-style multi-sig, where the overall multisignature contains:

  • The number of signatures required for the multisignature to be valid
  • The public keys allowed to create signatures
  • Signatures from a subset of those keys

The first two parts together are equivalent to a Bitcoin script, and are similarly hashed to get the “master key” for the multi-party signature group. Ed25519 is used for the individual signatures, and BLAKE2b is used for creating the master key.

Signature format

Version    (1-byte uint)     \
Threshold  (1-byte uint)      |_ Hashed to obtain
Size       (1-byte uint)      |  the master key
Pubkeys    (32 x size bytes) /
Signatures (64 x threshold bytes)


Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(22.7 kB) Copy SHA256 Hash SHA256
Source Dec 25, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting