Skip to content

Commit ae4cbd4

Browse files
committed
tests: use valid verifier pubkeys in bridge tests
1 parent 7395229 commit ae4cbd4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/PonziTech.BitVM.IntegrationTests/BridgeClientTests.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Linq;
23
using Xunit;
34
using NBitcoin;
45
using PonziTech.BitVM.Bridge;
@@ -22,7 +23,7 @@ public BridgeClientTests()
2223
_config = new BridgeConfiguration
2324
{
2425
Network = BitcoinNetwork.Regtest,
25-
VerifierPublicKeys = new[] { RandomUtils.GetBytes(33) }
26+
VerifierPublicKeys = CreateVerifierKeys(1)
2627
};
2728
_client = new BridgeClient(_config);
2829
}
@@ -186,4 +187,11 @@ public void Dispose()
186187
{
187188
_client?.Dispose();
188189
}
190+
191+
private static byte[][] CreateVerifierKeys(int count)
192+
{
193+
return Enumerable.Range(0, count)
194+
.Select(_ => new Key().PubKey.ToBytes())
195+
.ToArray();
196+
}
189197
}

0 commit comments

Comments
 (0)