Sign transaction

What is the difference between txn.signTxn(sk) and algosdk.signTransaction(txn, sk)?

the former is more reliable; also latter does not behave the same for transaction objects

See: Allow `algosdk.signTransaction` to sign transactions generated by `make*` · Issue #153 · algorand/js-algorand-sdk · GitHub