docs: function Identity(userID, passphrase, keyPair) {
    if (!(this instanceof Identity)) {
      return new Identity(userID, passphrase, keyPair);
    }
  
    assert(typeof userID === 'string', 'Invalid userID supplied');
    assert(typeof passphrase === 'string', 'Invalid passphrase supplied');
  
    this._publicKeyArmored = keyPair.publicKey.toString();
    this._privateKeyArmored = keyPair.privateKey.toString();
  
    this.userID = userID;
    this.publicKey = pgp.key.readArmored(this._publicKeyArmored).keys[0];
    this.privateKey = pgp.key.readArmored(this._privateKeyArmored).keys[0];
  
    assert(this.privateKey.decrypt(passphrase), 'Failed to decrypt private key');
  }