We also require field operations modulo the group order N. Simple operations are required for scalar multiplication, but the main motivation is for ECDSA. In particular we would like to satisfy the invertable interface in the crypto/ecdsa package.
// A invertible implements fast inverse mod Curve.Params().N
type invertible interface {
// Inverse returns the inverse of k in GF(P)
Inverse(k *big.Int) *big.Int
}
We also require field operations modulo the group order N. Simple operations are required for scalar multiplication, but the main motivation is for ECDSA. In particular we would like to satisfy the
invertable
interface in thecrypto/ecdsa
package.https://github.com/golang/go/blob/fa7d40abe098a7d30e6cb492ee8e05306b8e537d/src/crypto/ecdsa/ecdsa.go#L42-L46
Updates #55