Skip to content

undefined: secp256k1.RecoveryPubkey #100

Description

@Daniel1984

Playing around with your sdk getting this err.
main.go

package main

import (
	"fmt"
	"log"

	"github.com/iotexproject/iotex-antenna-go/v2/account"
)

func main() {
	fmt.Println("hola")

	wal, err := account.NewAccount()
	if err != nil {
		log.Fatal(err.Error())
	}

	fmt.Printf("addr: %s", wal.Address())
}

go.mod:

module testing.iotex

go 1.17

require github.com/iotexproject/iotex-antenna-go/v2 v2.5.1

require (
	github.com/btcsuite/btcd v0.21.0-beta // indirect
	github.com/deckarep/golang-set v1.7.1 // indirect
	github.com/dustinxie/gmsm v1.4.0 // indirect
	github.com/ethereum/go-ethereum v1.10.4 // indirect
	github.com/go-stack/stack v1.8.0 // indirect
	github.com/google/uuid v1.1.5 // indirect
	github.com/iotexproject/go-pkgs v0.1.12 // indirect
	github.com/iotexproject/iotex-address v0.2.7 // indirect
	github.com/pkg/errors v0.9.1 // indirect
	github.com/rjeczalik/notify v0.9.2 // indirect
	golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
	golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912 // indirect
)

go run main.go:

# github.com/iotexproject/go-pkgs/crypto
../../../go/pkg/mod/github.com/iotexproject/go-pkgs@v0.1.12/crypto/key.go:161:13: undefined: secp256k1.RecoverPubkey

Same with go-pkgs@v0.1.6

go version
go version go1.17 linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions