From ba530c4abb35ea824a1d3c01d74969b5564c3b08 Mon Sep 17 00:00:00 2001 From: Sad Pencil Date: Thu, 26 Sep 2019 08:28:57 +0800 Subject: [PATCH] btcec: correct the comment of recoverKeyFromSignature --- btcec/signature.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btcec/signature.go b/btcec/signature.go index f1c43774..deedd172 100644 --- a/btcec/signature.go +++ b/btcec/signature.go @@ -276,7 +276,7 @@ func hashToInt(hash []byte, c elliptic.Curve) *big.Int { } // recoverKeyFromSignature recovers a public key from the signature "sig" on the -// given message hash "msg". Based on the algorithm found in section 5.1.5 of +// given message hash "msg". Based on the algorithm found in section 4.1.6 of // SEC 1 Ver 2.0, page 47-48 (53 and 54 in the pdf). This performs the details // in the inner loop in Step 1. The counter provided is actually the j parameter // of the loop * 2 - on the first iteration of j we do the R case, else the -R