EN ▼
Favorites
My Favorites
View All
Market Cap Price 24h%

Disclaimer: Content does not constitute investment advice. Trading involves risks—please invest with caution!

设置多重签名钱包:当“三选二”模式真正适合你时

2026-09-26 16:21:51
Bookmark

What is a multi-signature wallet and the exact meaning of "2-of-3"

A multi-signature wallet is a wallet that requires multiple keys to complete the transfer. Unlike a single signature, a transaction requires the consent of multiple keys to be executed, and this number needs to be preset. It is usually expressed as m-of-n: in a 2-of-3 wallet, there are three keys, and any two can be paid, and theft of a single key will not cause loss.

This may sound like a purely security issue, but in essence it is more of an organizational management issue. Multiple signatures shift the risk from "fear of losing keys" to "responsibility for managing configurations." People who don't understand this may set up a multi-signature wallet, only to lose Bitcoin due to a misplaced file rather than a hacker attack. This article will show when the effort is worth it, what needs to be backed up in addition to keys, and where most settings go wrong.

Ordinary Bitcoin transfers are single-key transactions: whoever holds the private key to the address can move the balance. However, the Bitcoin protocol allows conditions that require multiple signatures, and such expenditure conditions are called m-of-n.

These two numbers have different meanings, which is the most common source of confusion:

  • n is the total number of keys present. For 2-of-3, n is 3.
  • m is the number of signatures required to transfer money. For 2-of-3, m is 2.
  • n minus m是你的缓冲空间:即在不丢失访问权限的情况下可以丢失多少个密钥。对于 2-of-3,恰好为 1。

第二点比看起来更重要:2-of-3 钱包的三个密钥并非彼此的副本。每个密钥都是独立的秘密,拥有自己的助记词。因此,带有三个密钥的多重签名钱包意味着三个分别存储的备份,而不是三份相同的备份。

多重签名真正解决的三大问题

多重签名常被视为全面更安全。更准确地说:它解决了单钥钱包无法解决的三个具体问题。

  1. 设备被盗。 即使有人获取了你其中一个设备或找到一个备份,在 2-of-3 模式下他们仍一无所获。他们需要来自另一个位置的第二个密钥。这种保护也适用于被篡改的设备,因为单个受损设备无法独立发起转账。
  2. 单点故障。 在普通钱包中,一切取决于一个恢复短语。如果它损毁,余额即消失。而在 2-of-3 中,即使一个密钥及其备份完全消失,你仍可通过剩余的两个密钥访问资金。
  3. 共同责任。 两人共同持有资金时,不需要一种其中一人可单独移动所有资金的解决方案。三位参与者中的两名签名阈值正好实现了这一点。

如果你一直将密钥保存在纸张或金属上,那么安全存储种子短语的文章是多重签名建立的基础。没有清晰的个人备份,多重签名只会增加混乱。

多重签名无济于事的情况及单钥钱包更优的选择

大多数指南忽略了这种权衡,而对于大多数读者来说,这才是实际的答案。多重签名明确无法帮助你应对以下情况:

  • 胁迫。 强迫你转账的人也会强迫你取出两个密钥。只有当一个密钥不在你的短期掌控范围内时,这种保护才有效。
  • 错误的收款地址。 无论是一个还是两个签名,转错地址的后果同样是不可逆的。
  • 设置过程中的自身错误。 在这种情况下,多重签名甚至会增加风险,因为更多的部分必须配合无误。

由此得出一个不太受欢迎的建议:如果你持有的金额尚可,独自决策,且对钱包技术感到不确定,那么在实践中,备份良好的单钥钱包通常比半懂不懂的多重签名钱包更安全。当金额巨大、多人共同决策或需要跨数年规划访问权限时,这种努力才值得付出。

选择阈值:2-of-3、3-of-5 还是 2-of-2?

这些数字不是口味问题,而是防盗与防失之间的权衡。m越高,防盗越难,自我锁定的风险也越大。

  • 2-of-2 需要两个密钥,不容忍任何丢失。此选择适合双方必须同意的联合账户,且绝对需要有应急计划。
  • 2-of-3 是私人投资者的标准案例:一个密钥在日常可达处,一个在第二地点,一个在你信任的人手中或保险箱内。丢失一个已做计划,盗窃则毫无意义。
  • 3-of-5 适合协会、公司及较大金额。允许丢失两个密钥,且没有任何一对密钥能单独行动。代价是需要永久关注五个备份和五个存储位置。

阈值并不存在于密钥中,而存在于钱包的配置中。

除了密钥外,你需要备份什么

这是大多数多重签名设置后来崩溃的部分,这与攻击者无关。多重签名钱包由两部分组成:私钥和钱包配置。配置描述了密钥如何组合在一起,并至少包含以下内容:

  • 所有参与者的扩展公钥(xpub 或 zpub)。
  • 每个密钥的派生路径(Derivation Path),即从密钥计算地址的路径。
  • 阈值,即 m 和 n。
  • 脚本类型(Script Type),决定地址在技术上的构建方式。

如果没有这些细节,即使你拥有完整的恢复短语,也无法重建地址。配置不像私钥那样是秘密,因为它本身无法让人花费资金。但它会揭示你的整个支付历史,因此配置也不应存放在公开的云端。一个实用的规则:在每个密钥备份旁放置一份配置副本。这样,只要有一个可达的存储位置,就足以重新开始。

多重签名转账的技术原理

在单钥钱包中,一个设备签名并发送。在多重签名中,未完成的交易在设备间传递,为此有一个特定的格式标准:部分签名比特币交易(PSBT)。相关规范编号为 BIP-174,描述了一种包含签名者所需所有信息的格式,使得签名设备可以保持永久离线。

该过程有四个步骤,在进行大额操作前,你应该完整体验一次:

  1. 创建草稿: 钱包软件根据收款人、金额和手续费构建未完成交易。
  2. 第一次签名: 将草稿交给第一个设备,在该设备的屏幕上检查收款人和金额,然后签名。
  3. 第二次签名: 对第二个设备进行相同操作(可能位于另一地点)。草稿以文件、二维码或存储卡形式传输。
  4. 发送:Once the threshold is reached, the transaction is completed and sent to the network.

Two points immediately emerged. First, transfers take longer, especially when a key is in the safe. Secondly, checking the collection address on the device screen is not an optional convenience, but a practical protection: two devices independently display the same address, which can expose malware on the computer that tamper with the address.

Compatibility between derived paths and manufacturers

Multi-signature wallets built with equipment from different manufacturers are recommended because they further protect against failures in a single product line. In order for devices to work together, they must use the same conventions, and these conventions have been standardized.

The relevant standard is BIP-48, which defines its own deterministic multi-signature wallet hierarchy. The path form is: m / purpose' / coin_type' / account' / script_type' / change / address_index. The purpose is always 48, and the script type distinguishes two variants: 1 represents nested SegWit, and 2 represents native SegWit. As a recommended default, the standard clearly points out the path to native SegWit.

There is a second convention on top of this: Before building addresses from public keys, public keys are sorted in a defined order. This may sound like a minor issue, but it determines whether two programs calculate the same address from the same key. In practice this means: Record the full path and script type for each key. If there is no balance after recovery, the error almost always lies here, rather than the key itself.

Ethereum 及其他智能合约链上的多重签名

在比特币中,多重签名位于协议层:需要三个签名中的两个这一条件是支出条件本身的一部分。而在 Ethereum 和大多数智能合约链上,多重签名出现在链上的合同中,通过程序代码映射规则。

这一区别并非细节,因为它改变了信任问题。合同可以带来额外功能,如更换签名者或每日限额,使其更灵活。同时,你的安全依赖于该合同的代码及其审计,而不仅仅是签名的密码学。合同中的错误是协议原生多重签名所不承担的风险。使用两者的人都应分别评估,不应假设“三取二”在所有地方含义相同。

夫妻、公司及协会的联合钱包

对于多个参与者,多重签名是显而易见的形式,这里的优势不在于技术,而在于安排的清晰度。在设置任何东西之前,三个问题值得书面回答:

  • 谁持有哪个密钥,谁知道这件事? 对于两个人和三个密钥,第三个密钥是关键所在。如果它放在两人之一手中,那人就可以仅凭自己的密钥单独行动,从而实质上破坏了阈值限制。
  • 发生争议或分离时怎么办?2-of-2 的阈值意味着没有共识就不移动任何资金,即使是部分资金。这可能是预期的,也是事先讨论的原因。
  • 谁检查余额,频率如何? 联合钱包需要一个只读版本,所有参与者均可查看收支而无法签名。这个只读版本源于配置和公钥,应属于设置的一部分。

继承:继承人如何访问多重签名钱包

多重签名钱包对继承人来说比单钥钱包更难,这一障碍是不应设置过多密钥的理由。没有说明,没人能弄清楚有多少个密钥、它们在哪里以及如何组合。因此,你的遗产需要的是一份有意不泄露秘密的描述:密钥数量和阈值、存储位置、钱包配置以及用于恢复钱包的软件名称。

第二点来自实践:恢复经常失败是因为设备不再可用或其固件太旧。如何将密钥读取到另一制造商的设备中,请参阅关于在其他制造商设备上恢复种子短语的文章。你自己测试一下这条路线,而不是指望继承人能找到它。

德国税务:转入多重签名钱包

最常见的担忧先解答:如果你将自己钱包中的比特币转移到自己的多重签名钱包中,所有者并未改变。在自己钱包之间的转移既不是销售也不是交换,因此不会产生所得税法第 23 条规定的私人处置收益。持有期继续计算,不会因移动而重新开始。

重要的是文档,出于实际原因:税务局看来,从钱包地址流出的资金最初看起来像任何其他流出。因此,对于每次移动,都应记录哪个地址在何时转移到哪个地址,以及两个地址均属于你。各个持仓的获取日期保持不变,因为原始购买决定持有期而非移动。随着多个钱包和多重签名设置的增多,记账量迅速增长;哪些程序正确地将自己地址间的转移分类为非应税项目,可参考加密税务工具和投资组合跟踪器的比较。个案的具有约束力的分类由税务顾问负责。

你不应该跳过的试运行

多重签名设置只有在至少完整恢复过一次后才算完成。这次试运行花费一小时,却能避免那个真正昂贵的错误。

  1. 存入小额资金。 存入一笔你不会介意的损失金额。
  2. 进行一次转账。 使用两个签名执行完整的转账,以便了解流程和设备间的交接。
  3. 练习在非日常设备上恢复。 仅使用配置和两个恢复短语,在另一台计算机上重建钱包。如果出现相同的地址集,则设置有效。
  4. 演练丢失案例。 搁置一个密钥,并检查剩余两个是否足够。

只有在第三步之后,你才知道配置是完整的。每一个非盗窃导致的丢失多重签名持仓的报告,都归咎于跳过了恢复演练。

设置多重签名钱包:要点总结

  • 首先决定你是否真的需要多重签名。 对于小金额和个人用户,备份良好的单钥钱包胜出。
  • 像备份密钥一样小心备份配置。 xpub、派生路径、脚本类型和阈值应作为副本附在每次备份中,因为仅有密钥无法重建地址。
  • 在资金转入前练习恢复。 并记录你自己地址间的每次移动,以便日后证明持有期;加密税务工具和投资组合跟踪器的比较对此有帮助。

Disclaimer:

All content published on this website, including hyperlinks, related applications, forums, blogs, and other media accounts, originates from third-party platforms and their users. CoinMarketInsight makes no representations or warranties of any kind regarding the website or its content. All blockchain-related data and materials are provided for informational and research purposes only and do not constitute financial, legal, or investment advice. Users and third parties are solely responsible for the content they publish. CoinMarketInsight shall not be liable for any losses arising from the use of this website. You should exercise caution and conduct your own independent research, review, analysis, and verification before making any decisions.

Read Full Article
More News
TOP

TOP