function pairWithPIN(pin, expectDelay) {
    this._my_signerid = JPAKE_SIGNERID_SENDER;
    this._their_signerid = JPAKE_SIGNERID_RECEIVER;

    this._channel = pin.slice(JPAKE_LENGTH_SECRET);
    this._channelURL = this._serverURL + this._channel;
    this._secret = pin.slice(0, JPAKE_LENGTH_SECRET);

    this._chain(this._computeStepOne,
                this._getStep,
                function (callback) {
                  // Ensure that the other client can deal with a delay for
                  // the last message if that's requested by the caller.
                  if (!expectDelay) {
                    return callback();
                  }
                  if (!this._incoming.version || this._incoming.version < 3) {
                    return this.abort(JPAKE_ERROR_DELAYUNSUPPORTED);
                  }
                  return callback();
                },
                this._putStep,
                this._computeStepTwo,
                this._getStep,
                this._putStep,
                this._computeFinal,
                this._getStep,
                this._verifyPairing)();
  }
/**
   * Initiate pairing based on the PIN entered by the user.
   * 
   * This is typically called on desktop devices where typing is easier than
   * on mobile.
   * 
   * @param pin
   *        12 character string (in human-friendly base32) containing the PIN
   *        entered by the user.
   * @param expectDelay
   *        Flag that indicates that a significant delay between the pairing
   *        and the sending should be expected. v2 and earlier of the protocol
   *        did not allow for this and the pairing to a v2 or earlier client
   *        will be aborted if this flag is 'true'.
   */
Initiate pairing based on the PIN entered by the user.

This is typically called on desktop devices where typing is easier than
on mobile.

@param pin
12 character string (in human-friendly base32) containing the PIN
entered by the user.
@param expectDelay
Flag that indicates that a significant delay between the pairing
and the sending should be expected. v2 and earlier of the protocol
did not allow for this and the pairing to a v2 or earlier client
will be aborted if this flag is 'true'.
Initiate pairing based on the PIN entered by the user . This is typically called on desktop devices where typing is easier than on mobile . @param pin 12 character string ( in human - friendly base32 ) containing the PIN entered by the user . @param expectDelay Flag that indicates that a significant delay between the pairing and the sending should be expected . v2 and earlier of the protocol did not allow for this and the pairing to a v2 or earlier client will be aborted if this flag is ' true ' .
function pairWithPIN(pin, expectDelay) {
    this._my_signerid = JPAKE_SIGNERID_SENDER;
    this._their_signerid = JPAKE_SIGNERID_RECEIVER;
    this._channel = pin.slice(JPAKE_LENGTH_SECRET);
    this._channelURL = this._serverURL + this._channel;
    this._secret = pin.slice(0, JPAKE_LENGTH_SECRET);
    this._chain(this._computeStepOne,
                this._getStep,
                function (callback) {
                  if (!expectDelay) {
                    return callback();
                  }
                  if (!this._incoming.version || this._incoming.version < 3) {
                    return this.abort(JPAKE_ERROR_DELAYUNSUPPORTED);
                  }
                  return callback();
                },
                this._putStep,
                this._computeStepTwo,
                this._getStep,
                this._putStep,
                this._computeFinal,
                this._getStep,
                this._verifyPairing)();
  }
function pairWithPIN ( pin , expectDelay ) { this . _my_signerid = JPAKE_SIGNERID_SENDER ; this . _their_signerid = JPAKE_SIGNERID_RECEIVER ; this . _channel = pin . slice ( JPAKE_LENGTH_SECRET ) ; this . _channelURL = this . _serverURL + this . _channel ; this . _secret = pin . slice ( 0 , JPAKE_LENGTH_SECRET ) ; this . _chain ( this . _computeStepOne , this . _getStep , function ( callback ) { if ( ! expectDelay ) { return callback ( ) ; } if ( ! this . _incoming . version || this . _incoming . version < 3 ) { return this . abort ( JPAKE_ERROR_DELAYUNSUPPORTED ) ; } return callback ( ) ; } , this . _putStep , this . _computeStepTwo , this . _getStep , this . _putStep , this . _computeFinal , this . _getStep , this . _verifyPairing ) ( ) ; }
Initiate pairing based on the PIN entered by the user.
Initiate pairing based on the PIN entered by the user .
// Ensure that the other client can deal with a delay for // the last message if that's requested by the caller.