Support for new GroupV2 groups
This commit is contained in:
parent
1ce0959fa1
commit
7a02cc815d
53 changed files with 7326 additions and 839 deletions
|
@ -62,6 +62,11 @@ export async function deriveStickerPackKey(packKey: ArrayBuffer) {
|
|||
return concatenateBytes(part1, part2);
|
||||
}
|
||||
|
||||
export async function computeHash(data: ArrayBuffer): Promise<string> {
|
||||
const hash = await crypto.subtle.digest({ name: 'SHA-512' }, data);
|
||||
return arrayBufferToBase64(hash);
|
||||
}
|
||||
|
||||
// High-level Operations
|
||||
|
||||
export async function encryptDeviceName(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue