在魅惑咒语中的配对组中是否有身份组元素

2024-05-23 16:23:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要将一个group元素与另一个不改变其值的group元素相乘。因为对组元素的整数乘法会改变它的值。在

group = PairingGroup('SS512')
g= group.random(G1)
g*1 ==> some other pairing group element
g*g_identity = g # Is there any g_identity element defined in charm crypto?

Tags: 元素isgroup整数randomsomeelementidentity