P2Pool scientific basics

Enhancing security with weighted multisig wallets on PoW blockchains

Weighted approval on proof-of-work chains, with a script that works

Updated November 2026. The script in the first version of this page was not valid Bitcoin script: OP_CHECKMULTISIG has no notion of weight. It is replaced below by a construction that runs on Bitcoin today. A multisig decides who may approve a spend; it does not split the funds by the weights. Any split is in the outputs of the spending transaction.

Introduction

In the evolving landscape of blockchain technology, security and distributed control over funds remain paramount. This article delves into the concept of weighted multisig (multi-signature) wallets, an innovative approach to manage and secure funds on Proof of Work (PoW) blockchains like Bitcoin. We will explore how such wallets can be configured to require approvals with predetermined voting weights, offering a robust solution for partnerships, corporate governance, and other collaborative financial operations.

Concept of Weighted Multisig Wallets

A multisig wallet typically requires multiple signatures to approve a transaction, thereby adding a layer of security beyond traditional single-signature wallets. In a weighted multisig setup, different parties involved in the wallet have varying degrees of influence or ‘weight’ in approving transactions. This flexibility allows for a dynamic and secure management of blockchain transactions.

Practical Example

Consider a scenario with three stakeholders: Alice, Bob, and Charlie, who have formed a joint venture and decided to manage their funds through a multisig wallet. Their voting weights are distributed as follows:

For transactions to be executed, the combined weights of approving signatures must reach at least a 60% threshold.

Transaction Scenario

To illustrate, let's assume the trio wishes to withdraw 1000 units of cryptocurrency. The transaction would proceed as follows: Alice's approval, holding 50%, is insufficient alone. With Bob's additional 30%, the combined weight reaches 80%, surpassing the required threshold. The transaction is executed. Alice and Charlie together (70%) could also approve; Bob and Charlie together (50%) could not.

Implementing Weighted Multisig in PoW Blockchains

Bitcoin’s OP_CHECKMULTISIG and Taproot’s OP_CHECKSIGADD count signatures one each. A weighted threshold is built by checking each key on its own and adding its weight. With weights Alice = 5, Bob = 3, Charlie = 2 and a threshold of 6 (60% of 10), the script is:

<Alice_pubkey>   OP_CHECKSIG  OP_IF 5 OP_ELSE 0 OP_ENDIF
OP_SWAP <Bob_pubkey>     OP_CHECKSIG  OP_IF 3 OP_ADD OP_ENDIF
OP_SWAP <Charlie_pubkey> OP_CHECKSIG  OP_IF 2 OP_ADD OP_ENDIF
6 OP_GREATERTHANOREQUAL

Conclusion

Weighted multisig wallets on PoW blockchains like Bitcoin offer an enhanced security framework by requiring a predefined threshold of weighted approvals for transactions. This approach not only secures the funds against unauthorized access but also embeds flexibility and fairness in financial operations among multiple stakeholders. As blockchain technology continues to mature, such innovations in wallet configurations are pivotal for the widespread adoption and utility of cryptocurrencies in complex transactional environments.

V37Why a decentralized pool does not use a weighted (or any) shared wallet for payouts.

A weighted multisig is a custodial construct: pooled funds sit in one shared address that a quorum of signers controls. That is precisely the shape a decentralized pool must avoid: it re-introduces an operator, a trusted signer set, and a key that can be lost or coerced.

P2Pool and c2pool pay a different way and hold no pooled funds at all. The coinbase outputs of a found block are a deterministic function of the share chain: every node computes the identical outputs, each miner’s part paid directly to that miner’s own payout script, beside a small donation output to a fixed script. Miners’ rewards never pass through a shared wallet, a signing quorum or a custodian, and the V37 design keeps it that way. “Weight” does matter in a pool, but as work-weighted accounting (credit by proof of work) and version voting (one share, one vote, with a work-weighted tail guard), in consensus, not as approval power over a wallet. This page is a scripting primer for treasury and governance cases; it is not how a decentralized pool distributes rewards. See the Purple Paper summary, §5 (Proof-of-Work as Measurement) and §15 (Incentive).