0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00
libsignal/node/ts
Jordan Rose 70ec1ca26f
zkgroup: Add AuthCredentialWithPni
This is a variant of AuthCredential that carries two UUIDs, intended
to be a user's ACI and PNI. Why? Because when you've been invited to a
group, you may have been invited by your ACI or by your PNI, or by
both, and it's easier for clients to treat all those states the same
by having a credential that covers both identities. The downside is
that it's larger (both the data, obviously, but also the zkgroup proof
of validity, unsurprisingly).

AnyAuthCredentialPresentation gains a 'get_pni_ciphertext' method,
which will return `None` for the existing presentations and
`Some(encrypted_pni)` for the new credential. Having a separate
credential type but a common presentation type makes it easier for the
server to handle all possible credentials uniformly.
2022-06-21 15:11:57 -07:00
..
test zkgroup: Add AuthCredentialWithPni 2022-06-21 15:11:57 -07:00
zkgroup zkgroup: Add AuthCredentialWithPni 2022-06-21 15:11:57 -07:00
Address.ts node: Move TypeScript source files into ts/ directory 2021-11-08 16:40:50 -08:00
Errors.ts Node: Rename SignalClientError to LibSignalError 2022-03-23 10:49:09 -07:00
index.ts Revert "Expose SessionRecord.needsPniSignature/.setNeedsPniSignature" 2022-05-25 10:38:32 -07:00