Files
identity-manager/main.go

31 lines
631 B
Go

package main
import (
"errors"
"libshared"
"log"
"net/http"
)
type argonParams struct {
memory uint32
iterations uint32
parallelism uint8
keyLength uint32
}
func decodeHash(encoded string) (*argonParams, []byte, []byte, error) {
// Placeholder for PHC parsing implementation
return nil, nil, nil, errors.New("decodeHash not implemented")
}
func main() {
libshared.Pool = libshared.GetDbPool()
http.HandleFunc("/identity/create-local-identity", createLocalHandler)
http.HandleFunc("/identity/authenticate", authenticateHandler)
log.Println("server running on :8080")
http.ListenAndServe(":8080", nil)
}