Migrated cryptography and some improvements

This commit is contained in:
2017-06-08 21:56:31 +02:00
parent 83e50e1ad1
commit 1d3340a547
13 changed files with 270 additions and 316 deletions

View File

@ -61,7 +61,7 @@ public class Main {
.messageRepo(new JdbcMessageRepository(jdbcConfig))
.powRepo(new JdbcProofOfWorkRepository(jdbcConfig))
.networkHandler(new NioNetworkHandler())
.cryptography(new BouncyCryptography())
.cryptography(BouncyCryptography.INSTANCE)
.port(48444);
if (options.localPort != null) {
ctxBuilder.nodeRegistry(new NodeRegistry() {

View File

@ -94,7 +94,7 @@ public class SystemTest {
.port(alicePort)
.nodeRegistry(new TestNodeRegistry(bobPort))
.networkHandler(aliceNetworkHandler)
.cryptography(new BouncyCryptography())
.cryptography(BouncyCryptography.INSTANCE)
.listener(aliceListener)
.labeler(aliceLabeler)
.build();
@ -110,7 +110,7 @@ public class SystemTest {
.port(bobPort)
.nodeRegistry(new TestNodeRegistry(alicePort))
.networkHandler(bobNetworkHandler)
.cryptography(new BouncyCryptography())
.cryptography(BouncyCryptography.INSTANCE)
.listener(bobListener)
.labeler(new DebugLabeler("Bob"))
.build();