@wireapp/core-crypto 1.0.0-rc.35 → 1.0.0-rc.37
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/package.json
CHANGED
Binary file
|
@@ -94,37 +94,6 @@ export class NewAcmeOrder {
|
|
94
94
|
readonly delegate: Uint8Array;
|
95
95
|
}
|
96
96
|
/**
|
97
|
-
*/
|
98
|
-
export class ProposalBundle {
|
99
|
-
free(): void;
|
100
|
-
/**
|
101
|
-
* New CRL Distribution of members of this group
|
102
|
-
*/
|
103
|
-
readonly crlNewDistributionPoints: (string)[] | undefined;
|
104
|
-
/**
|
105
|
-
* TLS-serialized MLS proposal that needs to be fanned out to other (existing) members of the conversation
|
106
|
-
*/
|
107
|
-
readonly proposal: Uint8Array;
|
108
|
-
/**
|
109
|
-
* Unique identifier of a proposal. Use this in {@link CoreCrypto.clearPendingProposal} to roll back (delete) the proposal
|
110
|
-
*/
|
111
|
-
readonly proposalRef: Uint8Array;
|
112
|
-
}
|
113
|
-
/**
|
114
|
-
* see [core_crypto::prelude::WelcomeBundle]
|
115
|
-
*/
|
116
|
-
export class WelcomeBundle {
|
117
|
-
free(): void;
|
118
|
-
/**
|
119
|
-
* New CRL Distribution of members of this group
|
120
|
-
*/
|
121
|
-
readonly crlNewDistributionPoints: (string)[] | undefined;
|
122
|
-
/**
|
123
|
-
* Identifier of the joined conversation
|
124
|
-
*/
|
125
|
-
readonly id: Uint8Array;
|
126
|
-
}
|
127
|
-
/**
|
128
97
|
* Represents the identity claims identifying a client
|
129
98
|
* Those claims are verifiable by any member in the group
|
130
99
|
*/
|
@@ -597,6 +566,43 @@ export interface BufferedDecryptedMessage {
|
|
597
566
|
*/
|
598
567
|
crlNewDistributionPoints?: string[];
|
599
568
|
}
|
569
|
+
/**
|
570
|
+
* Returned by all methods creating proposals. Contains a proposal message and an identifier to roll back the proposal
|
571
|
+
*/
|
572
|
+
export interface ProposalBundle {
|
573
|
+
/**
|
574
|
+
* TLS-serialized MLS proposal that needs to be fanned out to other (existing) members of the conversation
|
575
|
+
*
|
576
|
+
* @readonly
|
577
|
+
*/
|
578
|
+
proposal: Uint8Array;
|
579
|
+
/**
|
580
|
+
* Unique identifier of a proposal. Use this in {@link CoreCrypto.clearPendingProposal} to roll back (delete) the proposal
|
581
|
+
*
|
582
|
+
* @readonly
|
583
|
+
*/
|
584
|
+
proposalRef: ProposalRef;
|
585
|
+
/**
|
586
|
+
* New CRL Distribution of members of this group
|
587
|
+
*
|
588
|
+
* @readonly
|
589
|
+
*/
|
590
|
+
crlNewDistributionPoints?: string[];
|
591
|
+
}
|
592
|
+
export interface WelcomeBundle {
|
593
|
+
/**
|
594
|
+
* Conversation ID
|
595
|
+
*
|
596
|
+
* @readonly
|
597
|
+
*/
|
598
|
+
id: Uint8Array;
|
599
|
+
/**
|
600
|
+
* New CRL Distribution of members of this group
|
601
|
+
*
|
602
|
+
* @readonly
|
603
|
+
*/
|
604
|
+
crlNewDistributionPoints?: string[];
|
605
|
+
}
|
600
606
|
/**
|
601
607
|
* MLS Proposal type
|
602
608
|
*/
|
@@ -906,9 +912,10 @@ export declare class CoreCrypto {
|
|
906
912
|
* Get the client's public signature key. To upload to the DS for further backend side validation
|
907
913
|
*
|
908
914
|
* @param ciphersuite - of the signature key to get
|
915
|
+
* @param credentialType - of the public key to look for
|
909
916
|
* @returns the client's public signature key
|
910
917
|
*/
|
911
|
-
clientPublicKey(ciphersuite: Ciphersuite): Promise<Uint8Array>;
|
918
|
+
clientPublicKey(ciphersuite: Ciphersuite, credentialType: CredentialType): Promise<Uint8Array>;
|
912
919
|
/**
|
913
920
|
*
|
914
921
|
* @param ciphersuite - of the KeyPackages to count
|