I am facing strange results fo go
SHA3-256 function:
here is source code
import (
"golang.org/x/crypto/sha3"
"encoding/hex"
)
func main() {
pub, _ := hex.DecodeString("c342dbf7cdd3096c4c3910c511a57049e62847dd5030c7e644bc855acc1fd626")
h := sha3.Sum256(pub[:])
fmt.Printf("SHA3 %x
", h)
// expected: b32562e67d3ea44ba1367ce134caac49fd305b24cde6716ad3857ac682576379
// received: 8a3ccc097f854811f4c49346da9c3bd1745d087ed539fa7817960f3e0ed8a44f
}
I verified result on couple of online converters, they all give same result, different from mine.