Commit 75d91310 authored by Jaromil's avatar Jaromil
Browse files

ECP/2 methods for generators aliased to G()

parent b895a70d
......@@ -435,6 +435,7 @@ int luaopen_ecp(lua_State *L) {
{"infinity",ecp_get_infinity},
{"order",ecp_order},
{"generator",ecp_generator},
{"G",ecp_generator},
{NULL,NULL}};
const struct luaL_Reg ecp_methods[] = {
{"affine",ecp_affine},
......
......@@ -300,6 +300,7 @@ int luaopen_ecp2(lua_State *L) {
const struct luaL_Reg ecp2_class[] = {
{"new",lua_new_ecp2},
{"generator",ecp2_generator},
{"G",ecp2_generator},
// basic pairing function & aliases
{"pair",ecp2_millerloop},
{"loop",ecp2_millerloop},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment