Can i sign my transaction if i use secp256k1? And how it do? If i'm using sign function from eztz lib, i takes

TypeError: invalid privateKey length

Private key coded using secp256k1 curve.

1 Answer 1


You must sign transactions from tz2 addresses with secp256k1. Eztz's sign function uses Ed25519, so that wont work. Easiest would probably be to just replace libsodium in eztz with something like bitcoinjs-lib.

  • Thanks, already found in sotez.
    – intosKai
    Jul 30, 2019 at 8:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.