fbsobreira / gotron-sdk

Tron SDK for golang / CLI tool with keystore manager
GNU Lesser General Public License v3.0
328 stars 215 forks source link

undefined: secp256k1.RecoverPubkey #137

Open ink-web3 opened 2 months ago

ink-web3 commented 2 months ago

when i use macbook pro to build golang product

scripts: `#!/bin/bash

export CGO_ENABLED=0 export GOARCH=amd64 export GOOS=linux go build -ldflags "-w -s" -o main main.go`

i got this error msg: github.com/fbsobreira/gotron-sdk/pkg/keystore vendor/github.com/fbsobreira/gotron-sdk/pkg/keystore/recover.go:17:33: undefined: secp256k1.RecoverPubkey

how can i do to fix it?

jeffcail commented 1 month ago

I also encountered the same problem

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o app  

failed message

# github.com/fbsobreira/gotron-sdk/pkg/keystore
../../gopath/pkg/mod/github.com/fbsobreira/gotron-sdk@v0.0.0-20230907131216-1e824406fe8c/pkg/keystore/recover.go:17:33: undefined: secp256k1.RecoverPubkey