Get bit representation of an elliptic curve group element

asked 2018-12-03 04:38:55 -0600

panther gravatar image

I can define an elliptic curve using

E = EllipticCurve(GF(97), [2,3])

I can then compute a group on E using

G = E.abelian_group()

I can then sample a random element in the group using

R = G.random_element()

Is there a way I can get a bit string representation of this group element R? Actually, I am implementing a pseudo-random generator scheme, which finally outputs a group element on elliptic curve. I need to convert it to a bit string.

edit retag flag offensive close merge delete

Comments

Maybe like that:

hex(hash(R))
FrédéricC gravatar imageFrédéricC ( 2018-12-03 14:22:56 -0600 )edit