package
0.0.0-20241102131135-b546fe3e7180
Repository: https://github.com/olegfomenko/crypto.git
Documentation: pkg.go.dev

# README

Elliptic curve

License: MIT

This package contains Go (only) implementation of elliptic curve with equation: y^2 =x^3 + ax + b. It also implements the standard Go elliptic.Curve interface.

The SECP256K1() function returns curve instance with parameters from SEC 2: Recommended Elliptic Curve Domain Parameters.

In the tests you can find the comparison of this implementation and popular Ethereum implementation.

More about (Wiki)

# Functions

SECP256K1 returns an Ethereum secp256k1 curve.

# Structs

Curve implements elliptic curve with equation: y^2 =x^3 + ax + b.