diff --git a/README.md b/README.md new file mode 100644 index 0000000..7dd6cf8 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# A testing Spring83 server + +Implementing some of [this very draft spec](https://github.com/robinsloan/spring-83-spec/blob/main/draft-20220609.md) + +# To test + +## run the server + +If you have [modd]() installed, run `modd`. Alternatively, `go run server/main.go` + +## run the client + +On first run, the client will generate a keypair for you according to the spring83 spec, and store it in `~/.config/spring83/key.pub` and `~/.config/spring83/key.priv`. + +This key has to meet a certain specification, so it may take up to a half hour to generate on the first run. The code to generate it is totally unoptimized and can probably be sped up, if you want to be the one to do that, awesome. + +`echo "testing" | go run client/main.go` diff --git a/client/main.go b/client/main.go index d8e16b4..384e1f6 100644 --- a/client/main.go +++ b/client/main.go @@ -27,7 +27,6 @@ func validKey() (ed25519.PublicKey, ed25519.PrivateKey) { } for bytes.Compare(pub[29:32], target) != 0 { - // fmt.Printf("%x\n", pub[29:32]) pub, priv, err = ed25519.GenerateKey(nil) if err != nil { panic(err)