Skip to content

Commit 60bd413

Browse files
committed
Add shamir's secret sharing doc
1 parent 5b88f38 commit 60bd413

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

doc/en/markdown/content/prikey_security.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ Advantages:
142142
- The algorithm is open source with extensive application and research support. You don't need to rely on specific software or third-party libraries to implement the algorithm; any skilled programmer can implement code based on the publicly available algorithm.
143143
- Even if all shares are leaked, attackers may not necessarily know you're using the SSS algorithm to protect private keys. They might think these shares are multiple private keys, which can increase the attacker's guessing difficulty. You can even actually use shares as private keys, storing small amounts of funds in them to create a honeypot deception layer. Attackers might be attracted to these small amounts and overlook the real private key. Once attackers transfer funds from the shares, you get an early warning: one of your shares has been leaked.
144144

145+
You can find an SSS algorithm implementation for Bitcoin private keys in my pabtc library: <https://github.com/mohanson/pabtc/blob/master/example/sss.py>.
146+
145147
**Summary**
146148

147149
Two principles:

doc/zh/markdown/content/prikey_security.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ assert (a + b) % pabtc.secp256k1.N == c
143143
- 算法开源且有广泛的应用和研究支持. 同时您不需要依赖某个软件或者某个第三方库实现算法, 任何熟练的程序员都可以根据公开的算法实现代码.
144144
- 即使所有分片都被泄露, 攻击者也不一定知道你在使用 sss 算法来保护私钥, 它可能只会认为这些分片是多个私钥, 这样可以增加攻击者的猜测难度. 你甚至可以真的将分片作为私钥来使用, 往里面存一些小额资金, 构成一个蜜罐迷惑层. 攻击者可能会被这些小额资金吸引, 而忽略了真正的私钥. 一旦攻击者将分片中的资金转移走, 您就能获得预警: 您的某个分片已经泄露.
145145

146+
您可以在我的 pabtc 库里找到一份针对比特币私钥的 sss 算法实现: <https://github.com/mohanson/pabtc/blob/master/example/sss.py>.
147+
146148
**总结**
147149

148150
原则就两点:

0 commit comments

Comments
 (0)