Skip to content

Commit 5c05385

Browse files
author
Jayash Satolia
committed
Fix auth ticket message
1 parent e577435 commit 5c05385

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/go/0chain.net/blobbercore/handler/auth_ticket.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package handler
33
import (
44
"context"
55
"fmt"
6+
"github.com/0chain/blobber/code/go/0chain.net/core/encryption"
67
"github.com/0chain/blobber/code/go/0chain.net/core/node"
78
"github.com/0chain/common/core/common"
89
"net/http"
@@ -40,7 +41,7 @@ func GenerateAuthTicket(ctx context.Context, r *http.Request) (interface{}, erro
4041

4142
round := r.URL.Query().Get("round")
4243

43-
signature, err := node.Self.Sign(fmt.Sprintf("%s_%s", clientID, round))
44+
signature, err := node.Self.Sign(encryption.Hash(fmt.Sprintf("%s_%s", clientID, round)))
4445
if err != nil {
4546
return nil, common.NewError("signature_failed", "signature failed")
4647
}

0 commit comments

Comments
 (0)