Skip to content

Commit

Permalink
Key: reuse KEY_SIZE
Browse files Browse the repository at this point in the history
Similar commit as ce7598f
  • Loading branch information
knocte committed Feb 5, 2021
1 parent 43d248f commit 5eb755e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NBitcoin/Key.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public SchnorrSignature SignSchnorr(uint256 hash)
{
AssertNotDiposed();
#if HAS_SPAN
Span<byte> h = stackalloc byte[32];
Span<byte> h = stackalloc byte[KEY_SIZE];
hash.ToBytes(h);
return new SchnorrSignature(_ECKey.SignSchnorr(h));
#else
Expand Down

0 comments on commit 5eb755e

Please sign in to comment.