LinkinStars commented on code in PR #235: URL: https://github.com/apache/incubator-answer-plugins/pull/235#discussion_r1812368929
########## connector-wallet/go.mod: ########## @@ -0,0 +1,50 @@ +module github.com/apache/incubator-answer-plugins/connector-wallet + +go 1.22 + +require ( + github.com/apache/incubator-answer v1.4.0 + github.com/apache/incubator-answer-plugins/util v1.0.2 + github.com/ethereum/go-ethereum v1.14.11 Review Comment: @i-Lucifer The `go-ethereum` uses the `LGPL-3.0 license` and the `GPL-3.0 license`. The `GPL-3.0 license` conflicts with the `Apache license`. So you need to replace it with other dependence. I found another [library](https://github.com/wealdtech/go-merkletree) that uses the Apache-2.0 license, which might help. ```go package main import ( "fmt" "github.com/ethereum/go-ethereum/crypto" "github.com/wealdtech/go-merkletree/v2/keccak256" ) func main() { input := "Hello, World!" hash := crypto.Keccak256([]byte(input)) fmt.Printf("Keccak256Hash of \"%s\": %x\n", input, hash) hasher := keccak256.New() digest := hasher.Hash([]byte(input)) fmt.Printf("Keccak256Hash of \"%s\": %x\n", input, digest) } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
