Changeset View
Changeset View
Standalone View
Standalone View
services/identity/src/constants.rs
Show All 28 Lines | |||||
// keyPayload: String, | // keyPayload: String, | ||||
// keyPayloadSignature: String, | // keyPayloadSignature: String, | ||||
// identityPreKey: String, | // identityPreKey: String, | ||||
// identityPreKeySignature: String, | // identityPreKeySignature: String, | ||||
// identityOneTimeKeys: Vec<String>, | // identityOneTimeKeys: Vec<String>, | ||||
// notifPreKey: String, | // notifPreKey: String, | ||||
// notifPreKeySignature: String, | // notifPreKeySignature: String, | ||||
// notifOneTimeKeys: Vec<String>, | // notifOneTimeKeys: Vec<String>, | ||||
// socialProof: Option<String> | |||||
// } | // } | ||||
// } | // } | ||||
// | // | ||||
// Additional context: | // Additional context: | ||||
// "devices" uses the signing public identity key of the device as a key for the devices map | // "devices" uses the signing public identity key of the device as a key for the devices map | ||||
// "keyPayload" is a JSON encoded string containing identity and notif keys (both signature and verification) | // "keyPayload" is a JSON encoded string containing identity and notif keys (both signature and verification) | ||||
// if "deviceType" == "keyserver", then the device will not have any notif key information | // if "deviceType" == "keyserver", then the device will not have any notif key information | ||||
Show All 15 Lines | |||||
pub const USERS_TABLE_DEVICES_MAP_IDENTITY_ONETIME_KEYS_ATTRIBUTE_NAME: &str = | pub const USERS_TABLE_DEVICES_MAP_IDENTITY_ONETIME_KEYS_ATTRIBUTE_NAME: &str = | ||||
"identityOneTimeKeys"; | "identityOneTimeKeys"; | ||||
pub const USERS_TABLE_DEVICES_MAP_NOTIF_PREKEY_ATTRIBUTE_NAME: &str = "preKey"; | pub const USERS_TABLE_DEVICES_MAP_NOTIF_PREKEY_ATTRIBUTE_NAME: &str = "preKey"; | ||||
pub const USERS_TABLE_DEVICES_MAP_NOTIF_PREKEY_SIGNATURE_ATTRIBUTE_NAME: &str = | pub const USERS_TABLE_DEVICES_MAP_NOTIF_PREKEY_SIGNATURE_ATTRIBUTE_NAME: &str = | ||||
"preKeySignature"; | "preKeySignature"; | ||||
pub const USERS_TABLE_DEVICES_MAP_NOTIF_ONETIME_KEYS_ATTRIBUTE_NAME: &str = | pub const USERS_TABLE_DEVICES_MAP_NOTIF_ONETIME_KEYS_ATTRIBUTE_NAME: &str = | ||||
"notifOneTimeKeys"; | "notifOneTimeKeys"; | ||||
pub const USERS_TABLE_WALLET_ADDRESS_ATTRIBUTE: &str = "walletAddress"; | pub const USERS_TABLE_WALLET_ADDRESS_ATTRIBUTE: &str = "walletAddress"; | ||||
pub const USERS_TABLE_DEVICES_MAP_SOCIAL_PROOF_ATTRIBUTE_NAME: &str = | |||||
"socialProof"; | |||||
pub const USERS_TABLE_USERNAME_INDEX: &str = "username-index"; | pub const USERS_TABLE_USERNAME_INDEX: &str = "username-index"; | ||||
pub const USERS_TABLE_WALLET_ADDRESS_INDEX: &str = "walletAddress-index"; | pub const USERS_TABLE_WALLET_ADDRESS_INDEX: &str = "walletAddress-index"; | ||||
pub const ACCESS_TOKEN_TABLE: &str = "identity-tokens"; | pub const ACCESS_TOKEN_TABLE: &str = "identity-tokens"; | ||||
pub const ACCESS_TOKEN_TABLE_PARTITION_KEY: &str = "userID"; | pub const ACCESS_TOKEN_TABLE_PARTITION_KEY: &str = "userID"; | ||||
pub const ACCESS_TOKEN_SORT_KEY: &str = "signingPublicKey"; | pub const ACCESS_TOKEN_SORT_KEY: &str = "signingPublicKey"; | ||||
pub const ACCESS_TOKEN_TABLE_CREATED_ATTRIBUTE: &str = "created"; | pub const ACCESS_TOKEN_TABLE_CREATED_ATTRIBUTE: &str = "created"; | ||||
pub const ACCESS_TOKEN_TABLE_AUTH_TYPE_ATTRIBUTE: &str = "authType"; | pub const ACCESS_TOKEN_TABLE_AUTH_TYPE_ATTRIBUTE: &str = "authType"; | ||||
Show All 27 Lines |