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 f20f20b commit d6061a5
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 d6061a5

Please sign in to comment.