src/script/script.js
function Script(options) {
  if (!(this instanceof Script))
    return new Script(options);

  this.raw = EMPTY_BUFFER;
  this.code = [];

  if (options)
    this.fromOptions(options);
}
function Script(options) {
  if (!(this instanceof Script))
    return new Script(options);

  this.raw = EMPTY_BUFFER;
  this.code = [];

  if (options)
    this.fromOptions(options);
}
function Script ( options ) { if ( ! ( this instanceof Script ) ) return new Script ( options ) ; this . raw = EMPTY_BUFFER ; this . code = [ ] ; if ( options ) this . fromOptions ( options ) ; }
Represents a input or output script.
@alias module:script.Script
@constructor
@param {Buffer|Array|Object|NakedScript} code - Array
of script code or a serialized script Buffer.
@property {Array} code - Parsed script code.
@property {Buffer?} raw - Serialized script.
@property {Number} length - Number of parsed opcodes.
Represents a input or output script .