mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
log out hash of message as hex
This commit is contained in:
parent
385ea04cf3
commit
6445f3c9ab
1 changed files with 1 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ func handleRequest(conn net.Conn) {
|
|||
f_msg := "Message Received"
|
||||
first_message := []byte(f_msg)
|
||||
new_msg2 := crypto.Keccak256(first_message)
|
||||
fmt.Println("the hash is ", hexutil.Encode(new_msg2))
|
||||
|
||||
//send_message := append(new_msg2, []byte{byte(10)}...)
|
||||
new_sig , err := crypto.Sign(new_msg2, key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue