From afa21953b5ecaa5557b6c8b098726b3544c1cb4b Mon Sep 17 00:00:00 2001 From: cristiantroy <154241727+cristiantroy@users.noreply.github.com> Date: Thu, 18 Jan 2024 20:24:52 +0800 Subject: [PATCH] internal/musig2: fix typos [skip ci] --- internal/musig2v040/context.go | 2 +- internal/musig2v040/musig2_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/musig2v040/context.go b/internal/musig2v040/context.go index b1701164c..fe41c4250 100644 --- a/internal/musig2v040/context.go +++ b/internal/musig2v040/context.go @@ -562,7 +562,7 @@ func (s *Session) Sign(msg [32]byte, return nil, ErrSigningContextReuse // We also need to make sure we have the combined nonce, otherwise this - // funciton was called too early. + // function was called too early. case s.combinedNonce == nil: return nil, ErrCombinedNonceUnavailable } diff --git a/internal/musig2v040/musig2_test.go b/internal/musig2v040/musig2_test.go index fbd7f13ee..c9bcabb52 100644 --- a/internal/musig2v040/musig2_test.go +++ b/internal/musig2v040/musig2_test.go @@ -1281,7 +1281,7 @@ func TestMuSigEarlyNonce(t *testing.T) { msg := sha256.Sum256([]byte("let's get taprooty, LN style")) - // If we try to sign before we have the combined nonce, we shoudl get + // If we try to sign before we have the combined nonce, we should get // an error. _, err = session1.Sign(msg) if !errors.Is(err, ErrCombinedNonceUnavailable) {