added serverIDsigner. At this moment performs: signup, login, blindsign

This commit is contained in:
arnaucode
2017-12-27 16:28:54 +01:00
parent 08e3915994
commit 92462dc3db
24 changed files with 553 additions and 83 deletions

View File

@@ -6,8 +6,6 @@ import (
"net/http"
"time"
mgo "gopkg.in/mgo.v2"
"github.com/fatih/color"
"github.com/gorilla/handlers"
)
@@ -28,8 +26,6 @@ type PeersList struct {
var peersList PeersList
var userCollection *mgo.Collection
func main() {
color.Blue("Starting CA")
@@ -37,13 +33,6 @@ func main() {
readConfig("config.json")
reconstructBlockchainFromBlock("http://"+config.IP+":"+config.ServerRESTPort, "")
initializeToken()
//mongodb
session, err := getSession()
check(err)
userCollection = getCollection(session, "users")
//run thw webserver
go webserver()