tCurrently there is no need to save the generated pubkey to a file. - tordam - A library for peer discovery inside the Tor network
HTML git clone https://git.parazyd.org/tordam
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 7c47b35dce0cd702516e30b03032ca06f5630978
DIR parent bdc19f961efb7f6eeefc4d4dc04d761c0fea42b9
HTML Author: parazyd <parazyd@dyne.org>
Date: Thu, 7 Dec 2017 22:19:13 +0100
Currently there is no need to save the generated pubkey to a file.
Diffstat:
M go/dam/dam.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/go/dam/dam.go b/go/dam/dam.go
t@@ -18,7 +18,7 @@ const Bits = 1024
const Privpath = "private.key"
// Pubpath holds the path of where our public key is.
-const Pubpath = "public.key"
+//const Pubpath = "public.key"
// Postmsg holds the message we are signing with our private key.
const Postmsg = "I am a DECODE node!"
t@@ -31,7 +31,7 @@ func main() {
if _, err := os.Stat("private.key"); os.IsNotExist(err) {
key := lib.GenRsa(Bits)
lib.SavePriv(Privpath, key)
- lib.SavePub(Pubpath, key.PublicKey)
+ //lib.SavePub(Pubpath, key.PublicKey)
}
key, err := lib.LoadKeyFromFile(Privpath)