From 9461649ed46f13eebccf7bd2d4cf9b7eefaaa7d7 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 2 Jul 2019 09:49:13 +0100 Subject: [PATCH] change sig type --- .../src/main/groovy/com/muwire/hostcache/HostCache.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy b/host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy index 636223ff..3a1b6eaa 100644 --- a/host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy +++ b/host-cache/src/main/groovy/com/muwire/hostcache/HostCache.groovy @@ -11,6 +11,7 @@ import net.i2p.client.I2PSession import net.i2p.client.I2PSessionMuxedListener import net.i2p.client.datagram.I2PDatagramDissector import net.i2p.client.datagram.I2PDatagramMaker +import net.i2p.crypto.SigType import net.i2p.util.SystemVersion import net.i2p.data.* @@ -43,7 +44,7 @@ public class HostCache { def session if (!keyfile.exists()) { def os = new FileOutputStream(keyfile); - myDest = i2pClient.createDestination(os) + myDest = i2pClient.createDestination(os, SigType.EdDSA_SHA512_Ed25519) os.close() println "No key.dat file was found, so creating a new destination." println "This is the destination you want to give out for your new HostCache"