@signalapp/libsignal-client 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Native.d.ts +9 -1
- package/dist/Address.d.ts +1 -0
- package/dist/Address.js +9 -0
- package/dist/acknowledgments.md +6260 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +17 -2
- package/dist/zkgroup/groupsend/GroupSendCredential.d.ts +10 -0
- package/dist/zkgroup/groupsend/GroupSendCredential.js +25 -0
- package/dist/zkgroup/groupsend/GroupSendCredentialPresentation.d.ts +9 -0
- package/dist/zkgroup/groupsend/GroupSendCredentialPresentation.js +19 -0
- package/dist/zkgroup/groupsend/GroupSendCredentialResponse.d.ts +16 -0
- package/dist/zkgroup/groupsend/GroupSendCredentialResponse.js +43 -0
- package/dist/zkgroup/index.d.ts +3 -0
- package/dist/zkgroup/index.js +8 -1
- package/package.json +4 -2
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/darwin-x64/node.napi.node +0 -0
- package/prebuilds/linux-arm64/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.node +0 -0
- package/prebuilds/win32-arm64/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
package/Native.d.ts
CHANGED
|
@@ -159,6 +159,14 @@ export function GroupSecretParams_EncryptServiceId(params: Serialized<GroupSecre
|
|
|
159
159
|
export function GroupSecretParams_GenerateDeterministic(randomness: Buffer): Serialized<GroupSecretParams>;
|
|
160
160
|
export function GroupSecretParams_GetMasterKey(params: Serialized<GroupSecretParams>): Serialized<GroupMasterKey>;
|
|
161
161
|
export function GroupSecretParams_GetPublicParams(params: Serialized<GroupSecretParams>): Serialized<GroupPublicParams>;
|
|
162
|
+
export function GroupSendCredentialPresentation_CheckValidContents(presentationBytes: Buffer): void;
|
|
163
|
+
export function GroupSendCredentialPresentation_Verify(presentationBytes: Buffer, groupMembers: Buffer, now: Timestamp, serverParams: Serialized<ServerSecretParams>): void;
|
|
164
|
+
export function GroupSendCredentialResponse_CheckValidContents(responseBytes: Buffer): void;
|
|
165
|
+
export function GroupSendCredentialResponse_DefaultExpirationBasedOnCurrentTime(): Timestamp;
|
|
166
|
+
export function GroupSendCredentialResponse_IssueDeterministic(concatenatedGroupMemberCiphertexts: Buffer, requester: Serialized<UuidCiphertext>, expiration: Timestamp, serverParams: Serialized<ServerSecretParams>, randomness: Buffer): Buffer;
|
|
167
|
+
export function GroupSendCredentialResponse_Receive(responseBytes: Buffer, groupMembers: Buffer, localAci: Buffer, now: Timestamp, serverParams: Serialized<ServerPublicParams>, groupParams: Serialized<GroupSecretParams>): Buffer;
|
|
168
|
+
export function GroupSendCredential_CheckValidContents(paramsBytes: Buffer): void;
|
|
169
|
+
export function GroupSendCredential_PresentDeterministic(credentialBytes: Buffer, serverParams: Serialized<ServerPublicParams>, randomness: Buffer): Buffer;
|
|
162
170
|
export function HKDF_DeriveSecrets(outputLength: number, ikm: Buffer, label: Buffer | null, salt: Buffer | null): Buffer;
|
|
163
171
|
export function HsmEnclaveClient_CompleteHandshake(cli: Wrapper<HsmEnclaveClient>, handshakeReceived: Buffer): void;
|
|
164
172
|
export function HsmEnclaveClient_EstablishedRecv(cli: Wrapper<HsmEnclaveClient>, receivedCiphertext: Buffer): Buffer;
|
|
@@ -275,7 +283,7 @@ export function SealedSenderDecryptionResult_Message(obj: Wrapper<SealedSenderDe
|
|
|
275
283
|
export function SealedSender_DecryptMessage(message: Buffer, trustRoot: Wrapper<PublicKey>, timestamp: Timestamp, localE164: string | null, localUuid: string, localDeviceId: number, sessionStore: SessionStore, identityStore: IdentityKeyStore, prekeyStore: PreKeyStore, signedPrekeyStore: SignedPreKeyStore, kyberPrekeyStore: KyberPreKeyStore): Promise<SealedSenderDecryptionResult>;
|
|
276
284
|
export function SealedSender_DecryptToUsmc(ctext: Buffer, identityStore: IdentityKeyStore): Promise<UnidentifiedSenderMessageContent>;
|
|
277
285
|
export function SealedSender_Encrypt(destination: Wrapper<ProtocolAddress>, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Buffer>;
|
|
278
|
-
export function SealedSender_MultiRecipientEncrypt(recipients: Wrapper<ProtocolAddress>[], recipientSessions: Wrapper<SessionRecord>[], content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Buffer>;
|
|
286
|
+
export function SealedSender_MultiRecipientEncrypt(recipients: Wrapper<ProtocolAddress>[], recipientSessions: Wrapper<SessionRecord>[], excludedRecipients: Buffer, content: Wrapper<UnidentifiedSenderMessageContent>, identityKeyStore: IdentityKeyStore): Promise<Buffer>;
|
|
279
287
|
export function SealedSender_MultiRecipientMessageForSingleRecipient(encodedMultiRecipientMessage: Buffer): Buffer;
|
|
280
288
|
export function SenderCertificate_Deserialize(data: Buffer): SenderCertificate;
|
|
281
289
|
export function SenderCertificate_GetCertificate(obj: Wrapper<SenderCertificate>): Buffer;
|
package/dist/Address.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare abstract class ServiceId extends Object {
|
|
|
19
19
|
getRawUuid(): string;
|
|
20
20
|
getRawUuidBytes(): Buffer;
|
|
21
21
|
isEqual(other: ServiceId): boolean;
|
|
22
|
+
static toConcatenatedFixedWidthBinary(serviceIds: ServiceId[]): Buffer;
|
|
22
23
|
}
|
|
23
24
|
export declare class Aci extends ServiceId {
|
|
24
25
|
private readonly __type?;
|
package/dist/Address.js
CHANGED
|
@@ -78,6 +78,15 @@ class ServiceId extends Object {
|
|
|
78
78
|
isEqual(other) {
|
|
79
79
|
return this.serviceIdFixedWidthBinary.equals(other.serviceIdFixedWidthBinary);
|
|
80
80
|
}
|
|
81
|
+
static toConcatenatedFixedWidthBinary(serviceIds) {
|
|
82
|
+
const result = Buffer.alloc(serviceIds.length * SERVICE_ID_FIXED_WIDTH_BINARY_LEN);
|
|
83
|
+
let offset = 0;
|
|
84
|
+
for (const serviceId of serviceIds) {
|
|
85
|
+
result.set(serviceId.serviceIdFixedWidthBinary, offset);
|
|
86
|
+
offset += SERVICE_ID_FIXED_WIDTH_BINARY_LEN;
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
81
90
|
}
|
|
82
91
|
exports.ServiceId = ServiceId;
|
|
83
92
|
class Aci extends ServiceId {
|