neo-go/pkg/crypto/elliptic
decentralisedkev f8979fe7af
Fix lint errors (#182)
* golint and minor changes to make code readable
2019-03-17 18:26:35 +00:00
..
curves.go Fix lint errors (#182) 2019-03-17 18:26:35 +00:00
elliptic.go Fix lint errors (#182) 2019-03-17 18:26:35 +00:00
elliptic_test.go Initial commit 2019-02-25 22:44:14 +00:00
Readme.md Initial commit 2019-02-25 22:44:14 +00:00

Package - Elliptic

Why

The curve and arithmetic functions have been modularised, so that curves can be swapped in and out, without effecting the functionality.

The modular arithmetic used is not specialised for a specific curve.

In order to use this package, you must declare an ellipticcurve struct and then set the curve.

Example:

`

curve = NewEllipticCurve(Secp256k1)

` If no curve is set, the default curve is the r1 curve used for NEO. The tests are done using the k1 curve, so in the elliptic_test.go file, the curve is changed accordingly.