elliptic

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ed25519

func Ed25519() *ed25519

func P256 added in v1.0.3

func P256() *p256

func Secp256k1

func Secp256k1() *secp256k1

Types

type Curve

type Curve interface {
	elliptic.Curve

	Neg(x1, y1 *big.Int) (x, y *big.Int)
	Type() CurveType
	Slip10SeedList() []byte
	CompressedPoint(s *big.Int, isHash bool) []byte
}

type CurveType added in v1.0.5

type CurveType string
const (
	CurveTypeEd25519 CurveType = "ed25519"
)
const (
	CurveTypeP256 CurveType = "p256"
)
const (
	CurveTypeSecp256k1 CurveType = "secp256k1"
)

Jump to

Keyboard shortcuts

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