mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
internal/musig2: fix typos [skip ci]
This commit is contained in:
parent
f778f8b24e
commit
afa21953b5
@ -562,7 +562,7 @@ func (s *Session) Sign(msg [32]byte,
|
|||||||
return nil, ErrSigningContextReuse
|
return nil, ErrSigningContextReuse
|
||||||
|
|
||||||
// We also need to make sure we have the combined nonce, otherwise this
|
// 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:
|
case s.combinedNonce == nil:
|
||||||
return nil, ErrCombinedNonceUnavailable
|
return nil, ErrCombinedNonceUnavailable
|
||||||
}
|
}
|
||||||
|
@ -1281,7 +1281,7 @@ func TestMuSigEarlyNonce(t *testing.T) {
|
|||||||
|
|
||||||
msg := sha256.Sum256([]byte("let's get taprooty, LN style"))
|
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.
|
// an error.
|
||||||
_, err = session1.Sign(msg)
|
_, err = session1.Sign(msg)
|
||||||
if !errors.Is(err, ErrCombinedNonceUnavailable) {
|
if !errors.Is(err, ErrCombinedNonceUnavailable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user