fromTxo({ src, format }) {
    if (format !== 'txo') throw 'The src tx is not a valid TXO object';
    const ins = src.in.map(this.inputFromTxo)
    const outs = src.out.map(this.outputFromTxo)

    const bob = { ...src, in: ins, out: outs }
    delete bob._id
    return bob
  }
/**
   * 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 }
fromTxo({ src, format }) {
    if (format !== 'txo') throw 'The src tx is not a valid TXO object';
    const ins = src.in.map(this.inputFromTxo)
    const outs = src.out.map(this.outputFromTxo)
    const bob = { ...src, in: ins, out: outs }
    delete bob._id
    return bob
  }
fromTxo ( { src , format } ) { if ( format !== 'txo' ) throw 'The src tx is not a valid TXO object' ; const ins = src . in . map ( this . inputFromTxo ) const outs = src . out . map ( this . outputFromTxo ) const bob = { ... src , in : ins , out : outs } delete bob . _id return bob }
Creates a new BOB serialized transaction from the given Shapeshifter.
Creates a new BOB serialized transaction from the given Shapeshifter .