message: test(utxo-lib): add test for signing and validating zcash psbt
diff: @@ -40,4 +40,23 @@ describe('Zcash PSBT', function () {
  }
  [400, 450, 500].forEach((version) => testFromHexForVersion(version));
  });
  +
  + describe('should be able to sign the transaction', function () {
  + it('can sign the inputs', async function () {
  + psbt.signAllInputsHD(rootWalletKeys.user);
  + assert(!(psbt as any).__CACHE.__UNSAFE_SIGN_NONSEGWIT);
  + psbt.signAllInputsHD(rootWalletKeys.bitgo);
  + assert(!(psbt as any).__CACHE.__UNSAFE_SIGN_NONSEGWIT);
  + });
  +
  + it('can validate the signatures on the unspents', async function () {
  + psbt.validateSignaturesOfAllInputs();
  + assert(!(psbt as any).__CACHE.__UNSAFE_SIGN_NONSEGWIT);
  + });
  +
  + it('can finalize and extract the transaction', async function () {
  + psbt.finalizeAllInputs();
  + psbt.extractTransaction(true);
  + });
  + });
  });
  