Marlin中的Polynomial commitment scheme

1. 引言

前序博客有:

相关代码实现有:

2. arkworks实现中marlin/marlin_pcsonic_pc对比

[arkworks实现]https://github.com/arkworks-rs/poly-commit()中marlin/marlin_pcsonic_pc,二者都是基于KZG10的变种。主要不同在于:

  • 1)High level:
    二者处理degree bounds的方式不同:
    • marlin/marlin_pc:使用shift powers only in g1,需要2个commitments来enforce degree bounds。
    • sonic_pc:使用shift powers in G1 and G2,仅需一个commitment来enforce degree bounds。
  • 2)Setup阶段:
    • marlin/marlin_pc:shift powers in Marlin are in G1, and are shared with the “non-shift” powers。
    • sonic_pc:需要额外计算some G2 elements for shift powers: ( 1 / β ) i H (1/{\beta})^i H (1/β)iH。这将导致更长的verifying key,因为shift powers in sonic_pc are in G2。
  • 3)Commit阶段:
    • 当没有degree bound时,二者完全一样。
    • 当有degree bound时,marlin/marlin_pc要更昂贵一点,因为其需要其需要额外的commitment来commit to the shifted polynomial。
  • 4)Open阶段:
    • 当没有degree bound时,二者完全一样。
    • 当有degree bound时,marlin/marlin_pc要更昂贵一点,因为其需要更多的scalar field computations。
  • 5)Check阶段:
    • marlin/marlin_pc:由于Marlin仅建档调整了shifted polynomial的commitment,因此开销很小。marlin/marlin_pc中会check a pairing equation with two pairing operations。
    • sonic_pc:要更昂贵,因其需要check check a pairing equation with three pairing operations。当没有degree bound时,可reduce为a pairing equation with two pairing operations。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值