mirror of
https://github.com/arnaucube/blockchainIDsystem.git
synced 2026-02-07 11:06:41 +01:00
added serverIDsigner. At this moment performs: signup, login, blindsign
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user