merkletree icon indicating copy to clipboard operation
merkletree copied to clipboard

Support keccak256 ?

Open msebilly opened this issue 3 years ago • 1 comments

Can it support keccak256 with Ethereum smart contracts?

msebilly avatar Jan 19 '22 01:01 msebilly

You can leverage work from "golang.org/x/crypto/sha3"


import "golang.org/x/crypto/sha3"

func main() {
	var leafs []merkletree.Content
	tree, err := merkletree.NewTreeWithHashStrategy(leafs, sha3.NewLegacyKeccak256)
}

tonyke-bot avatar Feb 02 '22 06:02 tonyke-bot