Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32557962
D14071.1767259331.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14071.1767259331.diff
View Options
diff --git a/services/identity/src/constants.rs b/services/identity/src/constants.rs
--- a/services/identity/src/constants.rs
+++ b/services/identity/src/constants.rs
@@ -7,42 +7,6 @@
// DynamoDB
-// User table information, supporting opaque_ke 2.0 and X3DH information
-
-// Users can sign in either through username+password or Eth wallet.
-//
-// This structure should be aligned with the messages defined in
-// shared/protos/identity_unauthenticated.proto
-//
-// Structure for a user should be:
-// {
-// userID: String,
-// opaqueRegistrationData: Option<String>,
-// username: Option<String>,
-// walletAddress: Option<String>,
-// devices: HashMap<String, Device>
-// }
-//
-// A device is defined as:
-// {
-// deviceType: String, # client or keyserver
-// keyPayload: String,
-// keyPayloadSignature: String,
-// identityPreKey: String,
-// identityPreKeySignature: String,
-// identityOneTimeKeys: Vec<String>,
-// notifPreKey: String,
-// notifPreKeySignature: String,
-// notifOneTimeKeys: Vec<String>,
-// socialProof: Option<String>
-// }
-// }
-//
-// Additional context:
-// "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)
-// if "deviceType" == "keyserver", then the device will not have any notif key information
-
pub const USERS_TABLE: &str = "identity-users";
pub const USERS_TABLE_PARTITION_KEY: &str = "userID";
pub const USERS_TABLE_REGISTRATION_ATTRIBUTE: &str = "opaqueRegistrationData";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 1, 9:22 AM (4 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5875610
Default Alt Text
D14071.1767259331.diff (1 KB)
Attached To
Mode
D14071: [identity] Remove outdated comment from constants
Attached
Detach File
Event Timeline
Log In to Comment