matrix-react-sdk
Version:
SDK for matrix.org using React
34 lines (33 loc) • 1.02 kB
TypeScript
import React from "react";
interface IState {
error: boolean;
crossSigningPublicKeysOnDevice?: boolean;
crossSigningPrivateKeysInStorage?: boolean;
masterPrivateKeyCached?: boolean;
selfSigningPrivateKeyCached?: boolean;
userSigningPrivateKeyCached?: boolean;
homeserverSupportsCrossSigning?: boolean;
crossSigningReady?: boolean;
}
export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
private unmounted;
constructor(props: {});
componentDidMount(): void;
componentWillUnmount(): void;
private onAccountData;
private onBootstrapClick;
private onStatusChanged;
private getUpdatedStatus;
/**
* Reset the user's cross-signing keys.
*/
private resetCrossSigning;
/**
* Callback for when the user clicks the "reset cross signing" button.
*
* Shows a confirmation dialog, and then does the reset if confirmed.
*/
private onResetCrossSigningClick;
render(): React.ReactNode;
}
export {};