Open pipermerriam opened 3 years ago
It would be nice if py_ecc.secpk256k1, py_ecc.bls12_381 and py_ecc.bn128 all had roughly the same API.
py_ecc.secpk256k1
py_ecc.bls12_381
py_ecc.bn128
A combination of exposing a few un-exposed APIs from secpk256k1 and renaming things.
secpk256k1
add
multiply
py_ecc.secp256k1.secp256k1
py_ecc.secp256k1
py_ecc.secp256k1.secp256k1.inv
neg
field_modulus
curve_order
secp256k1
What is wrong?
It would be nice if
py_ecc.secpk256k1
,py_ecc.bls12_381
andpy_ecc.bn128
all had roughly the same API.How can it be fixed
A combination of exposing a few un-exposed APIs from
secpk256k1
and renaming things.add
andmultiply
frompy_ecc.secp256k1.secp256k1
frompy_ecc.secp256k1
py_ecc.secp256k1.secp256k1.inv
needs to be renamed/aliased toneg
to line up with the bls/bn APIs.field_modulus
andcurve_order
might need to have their equivalent values exposed fromsecp256k1