Uint8Array migration
This commit is contained in:
parent
daf75190b8
commit
4ef0bf96cc
137 changed files with 2202 additions and 3170 deletions
|
@ -1,14 +1,14 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { arrayBufferToBase64 } from '../Crypto';
|
||||
import * as Bytes from '../Bytes';
|
||||
|
||||
export function getProvisioningUrl(
|
||||
uuid: string,
|
||||
publicKey: ArrayBuffer
|
||||
publicKey: Uint8Array
|
||||
): string {
|
||||
const url = new URL('sgnl://linkdevice');
|
||||
url.searchParams.set('uuid', uuid);
|
||||
url.searchParams.set('pub_key', arrayBufferToBase64(publicKey));
|
||||
url.searchParams.set('pub_key', Bytes.toBase64(publicKey));
|
||||
return url.toString();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue