fabric icon indicating copy to clipboard operation
fabric copied to clipboard

unittest update, fix unittest failed case for TestEcdsaPublicKey

Open edwardramsey opened this issue 3 years ago • 0 comments

Type of change

  • Test update

Description

modify file: bccsp/sw/ecdsa_test.go reason: with go version 1.19, x509.MarshalPKIXPublicKey -> marshalPublicKey -> elliptic.Marshal will panic if point not on curve because of function new function panicIfNotOnCurve(curve, x, y)

func Marshal(curve Curve, x, y *big.Int) []byte {
	panicIfNotOnCurve(curve, x, y)
        // ...
}

Additional details

Related issues

edwardramsey avatar Aug 11 '22 04:08 edwardramsey