secp256

package
v1.5.31 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSNormalized

func IsSNormalized(sigS *big.Int) bool

IsSNormalized returns true for the integer sigS if sigS falls in lower half of the curve order

func NewSecp256

func NewSecp256() (*secp256, error)

NewSecp256 returns the component able to verify Secp256 signatures

func NormalizeS

func NormalizeS(sigS *big.Int) *big.Int

NormalizeS will invert the s value if not already in the lower half of curve order value

Types

type MessageHashType

type MessageHashType uint8

MessageHashType defines the type of hash algorithm

const (
	ECDSAPlainMsg MessageHashType = iota
	ECDSASha256
	ECDSADoubleSha256
	ECDSAKeccak256
	ECDSARipemd160
)

constants that define the available hash algorithms

Jump to

Keyboard shortcuts

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