Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
rohenaz committed Oct 30, 2020
1 parent 080054b commit cd2cf4f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cd2cf4f

Please sign in to comment.