From 880d9f9026bdcbf459f44b3a2b12eb433266f135 Mon Sep 17 00:00:00 2001 From: wydengyre Date: Thu, 3 Aug 2023 18:46:55 +0100 Subject: [PATCH] schnorr: correct rfc reference in docs The RFC used for deterministic nonce generation is rfc6979, not rfc6679. This commit fixes documentation in two places accordingly. --- btcec/schnorr/signature.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btcec/schnorr/signature.go b/btcec/schnorr/signature.go index 8f58d52b..dff09128 100644 --- a/btcec/schnorr/signature.go +++ b/btcec/schnorr/signature.go @@ -283,7 +283,7 @@ func schnorrSign(privKey, nonce *btcec.ModNScalar, pubKey *btcec.PublicKey, hash // // Note that the set of functional options passed in may modify the // above algorithm. Namely if CustomNonce is used, then steps 6-8 are - // replaced with a process that generates the nonce using rfc6679. If + // replaced with a process that generates the nonce using rfc6979. If // FastSign is passed, then we skip set 14. // NOTE: Steps 1-9 are performed by the caller. @@ -436,7 +436,7 @@ func Sign(privKey *btcec.PrivateKey, hash []byte, // // Note that the set of functional options passed in may modify the // above algorithm. Namely if CustomNonce is used, then steps 6-8 are - // replaced with a process that generates the nonce using rfc6679. If + // replaced with a process that generates the nonce using rfc6979. If // FastSign is passed, then we skip set 14. // Step 1.