message: refactor(core): use createOutputScript2of3 in v1 wallet
  Issue:
diff: @@ -312,21 +312,14 @@ Wallet.prototype.generateAddress = function ({ segwit, path, keychains, threshol
  wallet: this.id(),
  };
  - // redeem script normally, witness script for segwit
  - const inputScript = utxolib.script.multisig.output.encode(signatureThreshold, derivedKeys);
  - const inputScriptHash = utxolib.crypto.hash160(inputScript);
  - let outputScript = utxolib.script.scriptHash.output.encode(inputScriptHash);
  - addressDetails.redeemScript = inputScript.toString('hex');
  -
  - if (isSegwit) {
  - const witnessScriptHash = utxolib.crypto.sha256(inputScript);
  - const redeemScript = utxolib.script.witnessScriptHash.output.encode(witnessScriptHash);
  - const redeemScriptHash = utxolib.crypto.hash160(redeemScript);
  - outputScript = utxolib.script.scriptHash.output.encode(redeemScriptHash);
  - addressDetails.witnessScript = inputScript.toString('hex');
  - addressDetails.redeemScript = redeemScript.toString('hex');
  - }
  + const {
  + scriptPubKey: outputScript,
  + redeemScript,
  + witnessScript,
  + } = utxolib.bitgo.outputScripts.createOutputScript2of3(derivedKeys, isSegwit ? 'p2shP2wsh' : 'p2sh');
  + addressDetails.witnessScript = witnessScript?.toString('hex');
  + addressDetails.redeemScript = redeemScript.toString('hex');
  addressDetails.outputScript = outputScript.toString('hex');
  addressDetails.address = utxolib.address.fromOutputScript(outputScript, getNetwork(network));
  