wallet-sync-server/main.go
Daniel Krol 512ebe3e95 Protocol changes
* Regress from `lastSynced` to just `sequence` to start with something simpler
* Simplified payload: separate metadata, assume canonical way to hmac it together
  * No more "wallet state" except as a simple wrapper on the front end
* Version number in wallet payloads
2022-06-10 15:04:31 -04:00

28 lines
376 B
Go

package main
import (
"log"
"orblivion/lbry-id/auth"
"orblivion/lbry-id/server"
"orblivion/lbry-id/store"
)
func storeInit() (s store.Store) {
s = store.Store{}
s.Init("sql.db")
err := s.Migrate()
if err != nil {
log.Fatalf("DB setup failure: %+v", err)
}
return
}
func main() {
store := storeInit()
srv := server.Init(&auth.Auth{}, &store)
srv.Serve()
}