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.
This commit is contained in:
wydengyre 2023-08-03 18:46:55 +01:00
parent 6f93d9f40d
commit 880d9f9026

View file

@ -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.