mirror of
https://github.com/arnaucube/darkID-prototype.git
synced 2026-02-07 03:16:46 +01:00
readme and some clean
This commit is contained in:
@@ -4,17 +4,12 @@ import (
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
func savelog() {
|
||||
timeS := time.Now().String()
|
||||
_ = os.Mkdir("logs", os.ModePerm)
|
||||
//next 3 lines are to avoid windows filesystem errors
|
||||
timeS = strings.Replace(timeS, " ", "_", -1)
|
||||
timeS = strings.Replace(timeS, ".", "-", -1)
|
||||
timeS = strings.Replace(timeS, ":", "-", -1)
|
||||
logFile, err := os.OpenFile("logs/log-"+timeS+".log", os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
@@ -17,4 +17,4 @@ echo "$BLINDSIGNED"
|
||||
|
||||
echo ""
|
||||
echo "send blindsigned to the serverIDsigner to verify"
|
||||
curl -X POST http://127.0.0.1:3130/verifysign -d '{"m": "hola", "mSigned": "131898 40373 107552 34687"}'
|
||||
curl -X POST http://127.0.0.1:3130/verifysign -d '{"m": "hello", "mSigned": "131898 40373 107552 34687"}'
|
||||
|
||||
Reference in New Issue
Block a user