ecc

package
v0.0.0-...-b124b1e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECPoint

type ECPoint struct {
	Curvname string
	X, Y     *big.Int
}

type Point

type Point struct {
	Curve elliptic.Curve
	X     *big.Int
	Y     *big.Int
}

func NewPoint

func NewPoint(curve elliptic.Curve, x, y *big.Int) (*Point, error)

func NewPointFromString

func NewPointFromString(pointStr string) (*Point, error)

func ScalarBaseMult

func ScalarBaseMult(curve elliptic.Curve, k *big.Int) *Point

func (*Point) Add

func (p *Point) Add(p1 *Point) (*Point, error)

func (*Point) Equals

func (p *Point) Equals(p1 *Point) bool

func (*Point) ScalarMult

func (p *Point) ScalarMult(k *big.Int) *Point

func (*Point) ToString

func (p *Point) ToString() (string, error)

Jump to

Keyboard shortcuts

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