lib/extension/identity/identity.js
/**
   * Generates branded QR code representation
   * @param {boolean} dataURI
   */
Generates branded QR code representation
@param {boolean} dataURI
Generates branded QR code representation @param { boolean } dataURI
async qr(dataURI = true) {
    const qr = new QR(this);
    const stream = await qr.generate();
    if (dataURI) {
      const base64Stream = new Base64Encode({ prefix: 'data:image/png;base64,' });
      stream.pipe(base64Stream);
      return streamToPromise(base64Stream);
    }
    return stream;
  }
async qr ( dataURI = true ) { const qr = new QR ( this ) ; const stream = await qr . generate ( ) ; if ( dataURI ) { const base64Stream = new Base64Encode ( { prefix : 'data:image/png;base64,' } ) ; stream . pipe ( base64Stream ) ; return streamToPromise ( base64Stream ) ; } return stream ; }
Generates branded QR code representation
 @param {boolean} dataURI
Generates branded QR code representation @param { boolean } dataURI