utils

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurveHalfOrdersAt added in v1.1.0

func GetCurveHalfOrdersAt(c elliptic.Curve) *big.Int

func IsLowS added in v1.1.0

func IsLowS(k *ecdsa.PublicKey, s *big.Int) (bool, error)

IsLow checks that s is a low-S

func MarshalECDSASignature added in v1.1.0

func MarshalECDSASignature(r, s *big.Int) ([]byte, error)

func SignatureToLowS added in v1.1.0

func SignatureToLowS(k *ecdsa.PublicKey, signature []byte) ([]byte, error)

func ToLowS added in v1.1.0

func ToLowS(k *ecdsa.PublicKey, s *big.Int) (*big.Int, error)

func UnmarshalECDSASignature added in v1.1.0

func UnmarshalECDSASignature(raw []byte) (*big.Int, *big.Int, error)

Types

type ECDSASignature added in v1.1.0

type ECDSASignature struct {
	R, S *big.Int
}

Jump to

Keyboard shortcuts

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