code: function KeyRing(options, network) {
    if (!(this instanceof KeyRing))
      return new KeyRing(options, network);
  
    this.network = Network.primary;
    this.witness = false;
    this.nested = false;
    this.publicKey = encoding.ZERO_KEY;
    this.privateKey = null;
    this.script = null;
  
    this._keyHash = null;
    this._keyAddress = null;
    this._program = null;
    this._nestedHash = null;
    this._nestedAddress = null;
    this._scriptHash160 = null;
    this._scriptHash256 = null;
    this._scriptAddress = null;
  
    if (options)
      this.fromOptions(options, network);
  }
docs: Represents a key ring which amounts to an address.
  @alias module:primitives.KeyRing
  @constructor
  @param {Object} options
  @param {Network} network