From 0f45ddad3ef083780ef7baf673366b75fca0b1f1 Mon Sep 17 00:00:00 2001 From: Bill Mill Date: Sun, 19 Jun 2022 13:15:37 -0400 Subject: [PATCH] datetimes and CORS and hacking --- client/main.go | 9 ++- server/main.go | 155 ++++++++++++++++++++++++++++++++++--------------- 2 files changed, 116 insertions(+), 48 deletions(-) diff --git a/client/main.go b/client/main.go index 3790eb2..c325760 100644 --- a/client/main.go +++ b/client/main.go @@ -1,3 +1,5 @@ +// TODO: +// package main import ( @@ -108,7 +110,7 @@ func getKeys() (ed25519.PublicKey, ed25519.PrivateKey) { panic(err) } } else { - fmt.Printf("I am fishing in the sea of all possible keys for a valid spring83 key. This may take a bit...\n") + fmt.Println("Generating valid key. This will take a minute") pubkey, privkey = validKey() os.WriteFile(pubfile, pubkey, 0666) @@ -128,6 +130,11 @@ func main() { panic(err) } + // Prepoend a time element. Maybe we should check to see if it's already + // been provided? + timeElt := []byte(fmt.Sprintf("