From a08b3c7f0217773301ccf5ebe923bcac8cc76006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Tue, 17 Aug 2021 13:35:27 -0400 Subject: [PATCH] fixup! [crypto] Add EncodeCompressed, DecodepublicKeyCompressed to the signer API --- crypto/ecdsa_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crypto/ecdsa_test.go b/crypto/ecdsa_test.go index 717c8d160f6..a79b2d3bb4d 100644 --- a/crypto/ecdsa_test.go +++ b/crypto/ecdsa_test.go @@ -25,18 +25,6 @@ func createSeed(t *testing.T) []byte { return seed } -// keyType returns an elliptic.Curve for an fcrypto.SigningAlgorithm if it exists -func ecdsaAlgoFromSA(sa SigningAlgorithm) (*ecdsaAlgo, error) { - switch sa { - case ECDSAP256: - return p256Instance, nil - case ECDSASecp256k1: - return secp256k1Instance, nil - default: - return nil, newInvalidInputsError("Input does not correspond to an ECDSA Algorithm") - } -} - // ECDSA tests func TestECDSA(t *testing.T) { ecdsaCurves := []SigningAlgorithm{