curve

package
v0.0.0-...-abd57cf Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group interface {
	Order() *big.Int
	Gen() Point
	Add(Point, Point) Point
	Neutral() Point
	Neg(Point) Point
	ScalarMult(Point, *big.Int) Point
	ScalarBaseMult(*big.Int) Point
	Equal(Point, Point) bool
	Encode(Point, io.Writer) error
	Decode(io.Reader) (Point, error)
}

Group is a group formed on an elliptic curve

func NewSecp256k1Group

func NewSecp256k1Group() Group

NewSecp256k1Group returns the impelementation of the group interface with the secp256k1 elliptic curve

type Point

type Point interface {
}

Point is an element of a group on an elliptic curve

Jump to

Keyboard shortcuts

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