From cd2cf4ffb4e04d54bec279f3faa96abda6ee19d2 Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 30 Oct 2020 16:36:08 -0400 Subject: [PATCH] remove unused --- verify.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/verify.go b/verify.go index 0a19f82..0f9350b 100644 --- a/verify.go +++ b/verify.go @@ -119,7 +119,6 @@ func parseSignature(signature string) (sig secp256k1.Signature, recID int, err e // pubKeyToAddress will convert a pubkey to an address func pubKeyToAddress(pubkeyXy2 secp256k1.XY, compressed bool, magic []byte) (address string) { - pubkey, _ := bsvec.ParsePubKey(pubkeyXy2.Bytes(compressed), bsvec.S256()) bsvecAddress, _ := GetAddressFromPubKey(pubkey) return bsvecAddress.String() @@ -152,8 +151,6 @@ func recoverSig(sig *secp256k1.Signature, pubkey *secp256k1.XY, m *secp256k1.Num return false, errors.New("sig is nil") } - bsvec.ParseSignature(sig.Bytes(), bsvec.S256()) - var rx, rn, u1, u2 secp256k1.Number var fx secp256k1.Field var X secp256k1.XY