Skip to main content

Multi-signature

Multisignature is also often written as multisig or multi-signature. If a transaction requires two or more signatures to be valid, then the situation is called multi-signature.

Example

Suppose the company has a bank account, the first three digits of the password are kept by A, and the last three digits of the password are kept by B. When transferring money, both A and B must enter the passwords at the same time to transfer successfully. This is a typical multi-signature case.

The full name of multi-signature is multi-signature technology, which was first used for Bitcoin addresses in 2012, and then gave birth to multi-signature wallets.

Multi-signature transaction

Generally, transfers can be completed with only a single signature, which means that a private key can sign the transaction and complete the transfer. However, multi-signature transactions require the authorization of multiple key holders to transfer digital currency, which makes the assets in the wallet more secure and prevents internal theft.

Multi-signature transactions are sometimes called M-of-N transactions. M refers to the number of signatures required for the transaction to take effect, and N refers to the total number of parties involved in this transaction.

Specifically, it is assumed that N individuals hold N private keys, and as long as M individuals agree to sign, they can use the funds of a multi-signature account.

Example:

  • 1-2: Two people can use the funds as long as one of them agrees.
  • 2-2: Both must agree to use the funds.
  • 2-3: Two of the three people must agree to use the funds.
  • 4-7: 4 out of 7 people must agree to use the funds.
  • ...

The value of N is not limited to the above cases. The value of M only needs to be a positive integer less than or equal to N. Different values of M and N can be suitable for different application scenarios.

Multi-signature address

A multi-signature address is a special wallet address. To transfer money out of the address, you need to perform a multi-signature transaction. Using multi-signature, the risk of losing the private key can be distributed to N people, and the problem of a few people stealing funds can be avoided.

In short, an M-of-N address needs to be generated by collecting the address information of N parties. Once the token is transferred to this address, the M party must co-sign the transaction before the token can be transferred out.

Why do you need multiple signatures

From the above analysis, we can see that it is safer to use multiple signatures than single signatures.

  1. Prevent private key loss.

Usually, once a single-signature account loses the private key, there is no way to withdraw the funds of the corresponding address. This increases the risk of losing funds due to loss of private keys. The multi-signature mechanism can disperse the risk of losing the private key and ensure the security of funds.

  1. Prevent hacking.

For multi-signature accounts, if hackers want to steal funds, they usually need to obtain multiple multi-signature private keys, which is more difficult than obtaining private keys for single-signature accounts.

  1. Prevent internal theft.

If the private key is in the hands of individuals, there may be internal theft. If it is in the hands of multiple people, it can effectively reduce the occurrence of this situation.

Summary

Multi-signature technology can make the management and transaction of funds more secure, so the wallets of large exchanges generally use multi-signature accounts.