tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 7c47b35dce0cd702516e30b03032ca06f5630978
parent bdc19f961efb7f6eeefc4d4dc04d761c0fea42b9
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:
Mgo/dam/dam.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/go/dam/dam.go b/go/dam/dam.go @@ -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!" @@ -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)