From 556b5ff628edb2d387b80bb3d6cf44034d6cb8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 15 Sep 2021 20:27:13 +0200 Subject: [PATCH] Add `getBuffer()` to `QRCodeData` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/crypto/verification/QRCode.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/verification/QRCode.ts b/src/crypto/verification/QRCode.ts index cafb5a315..5b4c45dda 100644 --- a/src/crypto/verification/QRCode.ts +++ b/src/crypto/verification/QRCode.ts @@ -192,6 +192,10 @@ export class QRCodeData { return this.sharedSecret; } + public getBuffer(): Buffer { + return this.buffer; + } + private static generateSharedSecret(): string { const secretBytes = new Uint8Array(11); global.crypto.getRandomValues(secretBytes);