0

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

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.

1
  • 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 that you have read and understand our privacy policy and code of conduct.

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