Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurveHalfOrdersAt

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

func IsLowS

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

    IsLow checks that s is a low-S

    func MarshalECDSASignature

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

    func SignatureToLowS

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

    func ToLowS

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

    func UnmarshalECDSASignature

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

    Types

    type ECDSASignature

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

    Source Files