ec

package
v0.0.0-...-78eef5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var A = big.NewInt(0)
View Source
var B = big.NewInt(7)
View Source
var HexEncoding = 16
View Source
var OneInASCII byte = 49
View Source
var P, _ = new(big.Int).SetString(
	strings.ToLower("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"), 16)
View Source
var XInSecp256k1G, _ = new(big.Int).SetString(
	strings.ToLower("79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"), 16)
View Source
var YInSecp256k1G, _ = new(big.Int).SetString(
	strings.ToLower("483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8"), 16)

Functions

func ElCPointToString

func ElCPointToString(point ElCPoint) string

func Eq

func Eq(a, b ElCPoint) bool

func IsOnCurveCheck

func IsOnCurveCheck(a ElCPoint) bool

func PrintElCPoint

func PrintElCPoint(point ElCPoint)

Types

type ElCPoint

type ElCPoint struct {
	X *big.Int
	Y *big.Int
}

func AddElCPoints

func AddElCPoints(a, b ElCPoint) ElCPoint

func BasePointGGet

func BasePointGGet() ElCPoint

func DoubleElCPoints

func DoubleElCPoints(a ElCPoint) ElCPoint

func ElCPointGen

func ElCPointGen(x, y *big.Int) ElCPoint

func ScalarMult

func ScalarMult(k big.Int, a ElCPoint) ElCPoint

func StringToElCPoint

func StringToElCPoint(s string) ElCPoint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL