lib/auth/request-dh-params.js
function createPQInnerData(context) {
    var resPQ = context.resPQ;
    var newNonce = utility.createNonce(32);
    var pqInnerData = new mtproto.type.P_q_inner_data({
        props: {
            pq: resPQ.pq,
            p: context.pBuffer,
            q: context.qBuffer,
            nonce: resPQ.nonce,
            server_nonce: resPQ.server_nonce,
            new_nonce: newNonce
        }
    }).serialize();
    context.pqInnerData = pqInnerData;
    context.newNonce = newNonce;
    return context;
}
function createPQInnerData(context) {
    var resPQ = context.resPQ;
    var newNonce = utility.createNonce(32);
    var pqInnerData = new mtproto.type.P_q_inner_data({
        props: {
            pq: resPQ.pq,
            p: context.pBuffer,
            q: context.qBuffer,
            nonce: resPQ.nonce,
            server_nonce: resPQ.server_nonce,
            new_nonce: newNonce
        }
    }).serialize();
    context.pqInnerData = pqInnerData;
    context.newNonce = newNonce;
    return context;
}
function createPQInnerData ( context ) { var resPQ = context . resPQ ; var newNonce = utility . createNonce ( 32 ) ; var pqInnerData = new mtproto . type . P_q_inner_data ( { props : { pq : resPQ . pq , p : context . pBuffer , q : context . qBuffer , nonce : resPQ . nonce , server_nonce : resPQ . server_nonce , new_nonce : newNonce } } ) . serialize ( ) ; context . pqInnerData = pqInnerData ; context . newNonce = newNonce ; return context ; }
Create the pq_inner_data buffer
Create the pq_inner_data buffer