SignatureCodec codec = new RSASignatureCodec();
// replace default signature factories
ChannelClientConfiguration clientConfig = PeerBuilder.createDefaultChannelClientConfiguration();
clientConfig.signatureFactory(factory);
ChannelServerConfiguration serverConfig = PeerBuilder.createDefaultChannelServerConfiguration();
serverConfig.signatureFactory(factory);
KeyPair keyPairPeer1 = gen.generateKeyPair();
p1 = new PeerBuilderDHT(new PeerBuilder(Number160.createHash(1)).ports(4834).keyPair(keyPairPeer1)
.channelClientConfiguration(clientConfig)
.channelServerConfiguration(serverConfig).start()).start();