Shamir‘s Secret Sharing

Alice splits a secret s \red{s} s into n \red{n} n shares, such that

  • any combination of < = L \red{<= L} <=L shares cannot learn the secret
  • any combination of > L \red{> L} >L shares learns the secret

其中, L \red{L} L is the degree of polynomial f \red{f} f that f ( 0 ) = s \red{f(0) = s} f(0)=s.

在阶为 L \red{L} L 的曲线上选取 n \red{n} n 的点作为共享的秘密,即计算:
s h a r e 1 = f ( 1 ) , s h a r e 2 = f ( 2 ) , . . . , s h a r e n = f ( n ) \red{share_1 = f(1), share_2 = f(2),..., share_n = f(n)} share1=f(1),share2=f(2),...,sharen=f(n)

注:阶为1的曲线,只是需要2个点确定一条直线;阶为2的曲线,至少需要3个点确定一条直线;以此类推,阶为 L \red{L} L 的曲线,至少要 L + 1 \red{L + 1} L+1 个点确定一条直线。
在这里插入图片描述

恢复 secret s \red{s} s 时,需要用 Lagrange Interpolation (拉格朗日插值定理)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值