Skip to main content

Standard curve database

Search

Tweedledum

255-bit prime field Weierstrass curve.

Tweedledum pairing friendly curve from https://github.com/daira/tweedle.


y2x3+ax+by^2 \equiv x^3 + ax + b

Parameters

NameValue
p0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000001
a0x00
b0x05
G(0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000000, 0x02)
n0x40000000000000000000000000000000038aa127696286c9842cafd400000001
h0x01


SAGE

p = 0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000001
K = GF(p)
a = K(0x00)
b = K(0x05)
E = EllipticCurve(K, (a, b))
G = E(0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000000, 0x02)
E.set_order(0x40000000000000000000000000000000038aa127696286c9842cafd400000001 * 0x01)

PARI/GP

p = 0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000001
a = Mod(0x00, p)
b = Mod(0x05, p)
E = ellinit([a, b])
E[16][1] = 0x40000000000000000000000000000000038aa127696286c9842cafd400000001 * 0x01
G = [Mod(0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000000, p), Mod(0x02, p)]

JSON

{
"name": "Tweedledum",
"desc": "Tweedledum pairing friendly curve from <https://github.com/daira/tweedle>.",
"form": "Weierstrass",
"field": {
"type": "Prime",
"p": "0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000001",
"bits": 255
},
"params": {
"a": {
"raw": "0x00"
},
"b": {
"raw": "0x05"
}
},
"generator": {
"x": {
"raw": "0x40000000000000000000000000000000038aa1276c3f59b9a14064e200000000"
},
"y": {
"raw": "0x02"
}
},
"order": "0x40000000000000000000000000000000038aa127696286c9842cafd400000001",
"cofactor": "0x01"
}

© 2020 Jan Jancar | Built with Dox theme for Gatsby