#Cannot import go-algorand: go mod tidy && go install fails

1 messages · Page 1 of 1 (latest)

raven stump
#

Hi, I am facing problems importing go-algorand into my go file. After adding the import and running
go install
I get this error:

../../../go/pkg/mod/github.com/algorand/[email protected]/crypto/curve25519.go:147:12: could not determine kind of name for C.crypto_sign_ed25519_bv_compatible_verify_detached

Also tried go mod tidy and installed libsodium via brew, still no success. Running Apple M4.
Thank you for any help 🙏

drifting summit
#

isnt it supposed to be:

github.com/algorand/go-algorand-sdk/crypto

#

eg;

    "fmt"
    "github.com/algorand/go-algorand-sdk/crypto"
    "github.com/algorand/go-algorand-sdk/mnemonic"
)```
#

Not sure how you're importing

raven stump
#

Hi, thank you for taking time to reply. I really want to use the go-algorand, not the sdk. I want to read the ledger directly, bypassing the algod client and use the existing Ledger model to read the data from the ledger tracker database.

drifting summit
#

Do you mean an indexer?

#

Otherwise I am not familiar sadly, maybe others can help

raven stump
#

Not an indexer, the actual ledger tracker sql database. But thanks 🙂