src/crypto/verification/Base.js
/**
     * Begin the key verification
     *
     * @returns {Promise} Promise which resolves when the verification has
     *     completed.
     */
Begin the key verification
@returns {Promise} Promise which resolves when the verification has
completed.
Begin the key verification @returns { Promise } Promise which resolves when the verification has completed .
verify() {
        if (this._promise) return this._promise;
        this._promise = new Promise((resolve, reject) => {
            this._resolve = (...args) => {
                this._done = true;
                resolve(...args);
            };
            this._reject = (...args) => {
                this._done = true;
                reject(...args);
            };
        });
        if (this._doVerification && !this._started) {
            this._started = true;
            Promise.resolve(this._doVerification())
                .then(this.done.bind(this), this.cancel.bind(this));
        }
        return this._promise;
    }
verify ( ) { if ( this . _promise ) return this . _promise ; this . _promise = new Promise ( ( resolve , reject ) => { this . _resolve = ( ... args ) => { this . _done = true ; resolve ( ... args ) ; } ; this . _reject = ( ... args ) => { this . _done = true ; reject ( ... args ) ; } ; } ) ; if ( this . _doVerification && ! this . _started ) { this . _started = true ; Promise . resolve ( this . _doVerification ( ) ) . then ( this . done . bind ( this ) , this . cancel . bind ( this ) ) ; } return this . _promise ; }
Begin the key verification
 @returns {Promise} Promise which resolves when the verification has
     completed.
Begin the key verification @returns { Promise } Promise which resolves when the verification has completed .