I using old Transactions, and use partialSign. First sign on client then sign on servier. Now want to migrate to v0 transactions. Is exists way to partialSign VersionedTransaction ?
2 Answers
I found methods addSignature (its new methods, did not present before). First I sign transaction and then use addSignature for add signatures, that I received from client.
These are all viable ways to sign a Versioned Transaction:
let tx = new VersionedTransaction(message);
tx.sign([wallet.payer]);
tx.addSignature(wallet.publicKey, signature);