From 90087ff7015b05136ba0530a18353d79bbd36d9d Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Sat, 14 Jul 2018 16:27:43 -0400 Subject: [PATCH] change test keys and test message --- shyftRingWalletConn/app.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/shyftRingWalletConn/app.go b/shyftRingWalletConn/app.go index 8dd8e848b5..26f0cbee32 100644 --- a/shyftRingWalletConn/app.go +++ b/shyftRingWalletConn/app.go @@ -26,8 +26,8 @@ const ( CONN_TYPE = "tcp" ) -var testAddrHex = "970e8128ab834e8eac17ab8e3812f010678cf791" -var testPrivHex = "289c2857d4598e37fb9647507e47a309d6133539bf21a8b9cb6df88fd5232032" +var testAddrHex = "14791697260E4c9A71f18484C9f997B308e59325" +var testPrivHex = "0123456789012345678901234567890123456789012345678901234567890123" // This gives context to the signed message and prevents signing of transactions. func signHash(data []byte) []byte { @@ -115,7 +115,7 @@ func handleRequest(conn net.Conn) { key, _ := crypto.HexToECDSA(testPrivHex) //addr := common.HexToAddress(testAddrHex) - f_msg := "Message Received" + f_msg := "Hello World" first_message := []byte(f_msg) new_msg2 := crypto.Keccak256(first_message) fmt.Println("the hash is ", hexutil.Encode(new_msg2)) @@ -130,8 +130,7 @@ func handleRequest(conn net.Conn) { reqBodyBytes := new(bytes.Buffer) json.NewEncoder(reqBodyBytes).Encode(myNewMsg) - fmt.Println([]byte("Message Received\n")) - conn.Write([]byte("Message Received")) + conn.Write([]byte(f_msg)) conn.Write([]byte("\n")) conn.Write(new_sig) conn.Write([]byte("\n"))