如何使用golang.org/x/crypto/bn256计算e(g1^x,g1^x)?

huangapple go评论82阅读模式
英文:

How to compute e(g1^x,g1^x) with golang.org/x/crypto/bn256?

问题

golang包bn256可以实现这个功能:计算e(g_1^x,g_2^y),但我想计算e(g_1^x,g_1^y)。

有没有办法将g1上的一个点转移到g2上?

英文:

The golang package bn256 can do this: e(g_1^x,g_2^y), but I want to compute e(g_1^x,g_1^y).

Is there any way to transfer a point on g1 to g2?

答案1

得分: 0

我使用这个代替。

它是一个围绕pbc库的Golang封装。

英文:

I use this insteadly.

It is a golang wrapper around pbc library.

答案2

得分: 0

bn256不允许使用pair(G1,G2)进行对称配对。

解决这个问题的一种方法是将目标群元素提升到所需的指数。

英文:

bn256 does not let you do symmetric pairing with pair(G1,G2).

One way to go about it is to raise the destination group element to the desired exponent.

huangapple
  • 本文由 发表于 2017年8月14日 13:50:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/45668137.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定