py_ecc
py_ecc copied to clipboard
derive constants from BN parameter
Its a bit more intuitive to derive the various constants from the minimal set of magic numbers.
@cdetrio I'm not really qualified to judge the correctness of this PR but if you'd still like to merge these changes what do you think about:
- Rebasing and fixing the conflicts
- Adding some basic test cases (assuming there are some worth adding)