Changeset View
Changeset View
Standalone View
Standalone View
lib/types/crypto-types.js
// @flow | // @flow | ||||
export type OLMIdentityKeys = { | export type OLMIdentityKeys = { | ||||
+ed25519: string, | +ed25519: string, | ||||
+curve25519: string, | +curve25519: string, | ||||
}; | }; | ||||
export type OLMPrekey = { | |||||
+curve25519: { | |||||
+id: string, | |||||
+key: string, | |||||
}, | |||||
}; | |||||
export type OLMOneTimeKeys = { | |||||
+curve25519: { +[string]: string }, | |||||
}; | |||||
export type PickledOLMAccount = { | export type PickledOLMAccount = { | ||||
+picklingKey: string, | +picklingKey: string, | ||||
+pickledAccount: string, | +pickledAccount: string, | ||||
}; | }; | ||||
export type CryptoStore = { | export type CryptoStore = { | ||||
+primaryAccount: ?PickledOLMAccount, | +primaryAccount: ?PickledOLMAccount, | ||||
+primaryIdentityKeys: ?OLMIdentityKeys, | +primaryIdentityKeys: ?OLMIdentityKeys, | ||||
Show All 13 Lines |