Introduce Service Id Types

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny 2023-08-10 18:43:33 +02:00 committed by Jamie Kyle
parent 414c0a58d3
commit 366b875fd2
269 changed files with 5832 additions and 5550 deletions

View file

@ -94,8 +94,8 @@ describe('pnp/PNI Signature', function needsName() {
it('should be sent by Desktop until encrypted delivery receipt', async () => {
const { server, desktop } = bootstrap;
const ourPNIKey = await desktop.getIdentityKey(UUIDKind.PNI);
const ourACIKey = await desktop.getIdentityKey(UUIDKind.ACI);
const ourPniKey = await desktop.getIdentityKey(UUIDKind.PNI);
const ourAciKey = await desktop.getIdentityKey(UUIDKind.ACI);
const window = await app.getWindow();
@ -126,8 +126,8 @@ describe('pnp/PNI Signature', function needsName() {
`Incorrect pni in pni signature message from ${source}`
);
const isValid = ourPNIKey.verifyAlternateIdentity(
ourACIKey,
const isValid = ourPniKey.verifyAlternateIdentity(
ourAciKey,
Buffer.from(message.signature ?? [])
);
assert.isTrue(isValid, `Invalid pni signature from ${source}`);