Skip to content

Commit 5eb755e

Browse files
committed
Key: reuse KEY_SIZE
Similar commit as ce7598f
1 parent 43d248f commit 5eb755e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NBitcoin/Key.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public SchnorrSignature SignSchnorr(uint256 hash)
155155
{
156156
AssertNotDiposed();
157157
#if HAS_SPAN
158-
Span<byte> h = stackalloc byte[32];
158+
Span<byte> h = stackalloc byte[KEY_SIZE];
159159
hash.ToBytes(h);
160160
return new SchnorrSignature(_ECKey.SignSchnorr(h));
161161
#else

0 commit comments

Comments
 (0)