fromTx({ src, format }) {
    if (format !== 'tx') throw 'The src tx is not a valid Tx object';
    const txid = src.id()
    const ins = src.txIns.map(this.inputFromTx)
    const outs = src.txOuts.map(this.outputFromTx)
    return {
      tx: { h: txid },
      in: ins,
      out: outs,
      lock: src.nLockTime
    }
  }
/**
   * Creates a new BOB serialized transaction from the given Shapeshifter.
   *
   * @param {Shapeshifter} shapeshifter
   * @returns {Object}
   */
Creates a new BOB serialized transaction from the given Shapeshifter.
@param {Shapeshifter} shapeshifter
@returns {Object}
Creates a new BOB serialized transaction from the given Shapeshifter . @param { Shapeshifter } shapeshifter @returns { Object }
fromTx({ src, format }) {
    if (format !== 'tx') throw 'The src tx is not a valid Tx object';
    const txid = src.id()
    const ins = src.txIns.map(this.inputFromTx)
    const outs = src.txOuts.map(this.outputFromTx)
    return {
      tx: { h: txid },
      in: ins,
      out: outs,
      lock: src.nLockTime
    }
  }
fromTx ( { src , format } ) { if ( format !== 'tx' ) throw 'The src tx is not a valid Tx object' ; const txid = src . id ( ) const ins = src . txIns . map ( this . inputFromTx ) const outs = src . txOuts . map ( this . outputFromTx ) return { tx : { h : txid } , in : ins , out : outs , lock : src . nLockTime } }
Creates a new BOB serialized transaction from the given Shapeshifter.
Creates a new BOB serialized transaction from the given Shapeshifter .