fabric
fabric copied to clipboard
unittest update, fix unittest failed case for TestEcdsaPublicKey
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)
// ...
}