Skip to content

3-out-of-5 Threshold Signature#

Lets say you want to create a ring spending contract, where either of us can make a transaction from the same address, but we do not want anyone else to know which one of us is spending the funds. That is not possible with Bitcoin, and while Ethereum can, it would be expensive and complicated – especially with a ring size of 10 or 20 members, required for robust privacy.

With Ergo, this kind of application can be created quickly, thanks to integrating Sigma protocols in the core that enables self-sovereign application-level privacy: trustless scripts that can be used to access mixers or other functionality without any third parties required.

val ringScript = s"""

The above is an example 3-out-of-5 threshold signature, which can be compiled to a P2S address.

Sending ergs to the resulting address (protected by the threshold sig).

Here is a good introduction to making a signature.