@@ -284,12 +284,6 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
284284 */
285285 private claimedEd25519Key : string | null = null ;
286286
287- /* curve25519 keys of devices involved in telling us about the
288- * senderCurve25519Key and claimedEd25519Key.
289- * See getForwardingCurve25519KeyChain().
290- */
291- private forwardingCurve25519KeyChain : string [ ] = [ ] ;
292-
293287 /* where the decryption key is untrusted
294288 */
295289 private untrusted : boolean | null = null ;
@@ -1028,7 +1022,6 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
10281022 this . clearEvent = decryptionResult . clearEvent ;
10291023 this . senderCurve25519Key = decryptionResult . senderCurve25519Key ?? null ;
10301024 this . claimedEd25519Key = decryptionResult . claimedEd25519Key ?? null ;
1031- this . forwardingCurve25519KeyChain = decryptionResult . forwardingCurve25519KeyChain || [ ] ;
10321025 this . untrusted = decryptionResult . untrusted || false ;
10331026 this . invalidateExtensibleEvent ( ) ;
10341027 }
@@ -1048,7 +1041,6 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
10481041 } ;
10491042 this . senderCurve25519Key = null ;
10501043 this . claimedEd25519Key = null ;
1051- this . forwardingCurve25519KeyChain = [ ] ;
10521044 this . untrusted = false ;
10531045 this . invalidateExtensibleEvent ( ) ;
10541046 }
@@ -1119,21 +1111,18 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
11191111 }
11201112
11211113 /**
1122- * Get the curve25519 keys of the devices which were involved in telling us
1123- * about the claimedEd25519Key and sender curve25519 key.
1124- *
1125- * Normally this will be empty, but in the case of a forwarded megolm
1126- * session, the sender keys are sent to us by another device (the forwarding
1127- * device), which we need to trust to do this. In that case, the result will
1128- * be a list consisting of one entry.
1114+ * Returns an empty array.
11291115 *
1130- * If the device that sent us the key (A) got it from another device which
1131- * it wasn't prepared to vouch for (B), the result will be [A, B]. And so on.
1116+ * Previously, this returned the chain of Curve25519 keys through which
1117+ * this session was forwarded, via `m.forwarded_room_key` events.
1118+ * However, that is not cryptographically reliable, and clients should not
1119+ * be using it.
11321120 *
1133- * @returns base64-encoded curve25519 keys, from oldest to newest.
1121+ * @see https://github.com/matrix-org/matrix-spec/issues/1089
1122+ * @deprecated
11341123 */
11351124 public getForwardingCurve25519KeyChain ( ) : string [ ] {
1136- return this . forwardingCurve25519KeyChain ;
1125+ return [ ] ;
11371126 }
11381127
11391128 /**
0 commit comments