src/primitives/outpoint.js
function Outpoint(hash, index) {
  if (!(this instanceof Outpoint))
    return new Outpoint(hash, index);

  this.hash = encoding.NULL_HASH;
  this.index = 0xffffffff;

  if (hash != null) {
    assert(typeof hash === 'string', 'Hash must be a string.');
    assert(util.isU32(index), 'Index must be a uint32.');
    this.hash = hash;
    this.index = index;
  }
}
function Outpoint(hash, index) {
  if (!(this instanceof Outpoint))
    return new Outpoint(hash, index);

  this.hash = encoding.NULL_HASH;
  this.index = 0xffffffff;

  if (hash != null) {
    assert(typeof hash === 'string', 'Hash must be a string.');
    assert(util.isU32(index), 'Index must be a uint32.');
    this.hash = hash;
    this.index = index;
  }
}
function Outpoint ( hash , index ) { if ( ! ( this instanceof Outpoint ) ) return new Outpoint ( hash , index ) ; this . hash = encoding . NULL_HASH ; this . index = 0xffffffff ; if ( hash != null ) { assert ( typeof hash === 'string' , 'Hash must be a string.' ) ; assert ( util . isU32 ( index ) , 'Index must be a uint32.' ) ; this . hash = hash ; this . index = index ; } }
Represents a COutPoint.
@alias module:primitives.Outpoint
@constructor
@param {Hash?} hash
@param {Number?} index
@property {Hash} hash
@property {Number} index
Represents a COutPoint .