add a readme

main
Bill Mill 2 years ago
parent 8c88c79fd9
commit 196ebb40cc
  1. 17
      README.md
  2. 1
      client/main.go

@ -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`

@ -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)

Loading…
Cancel
Save