Skip to content

Commit

Permalink
fixing logging of hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo committed Jun 27, 2019
1 parent 40ff791 commit e017848
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ func (server *Server) Listen() {
break
}
doc := msg.Data[1]
log.Printf("Signing document hash %s with key %s as asked by server %s", doc, keyID, server.GetConnString())
b64doc := base64.StdEncoding.EncodeToString(doc)
log.Printf("Signing document hash %s with key %s as asked by server %s", b64doc, keyID, server.GetConnString())
sigShare, err := key.Share.Sign(doc, crypto.SHA256, key.Meta)
if err != nil {
resp.Error = message.DocSignError
break
}
b64doc := base64.StdEncoding.EncodeToString(doc)

log.Printf("The document %s was signed succesfully with key %s as asked by server %s", b64doc, keyID, server.GetConnString())
encodedSigShare, err := message.EncodeSigShare(sigShare)
if err != nil {
Expand Down

0 comments on commit e017848

Please sign in to comment.