I need the identity element on an elliptic curve in charm crypto. Because I want to sum up 5 different random elements in G1 i.e. elementList= {g1, g2, g3, g4, g5}
. Right now, I have generated another random element in G1 i.e. temp= group.random(G1)
.
temp = group.random(G1)
elementList= {g1, g2, g3, g4, g5}
for num in range(0, 5):
temp= temp+ elementList[num]
Can someone tell me how could I do it? Hope to hear from some experts.