Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace address with keyUid in accounts db #1716

Merged
merged 1 commit into from
Dec 9, 2019
Merged

Conversation

rasom
Copy link
Collaborator

@rasom rasom commented Dec 5, 2019

Account's address was used as a primary key in accounts db and as a
deterministic id of an account in some API calls. Also it was used as a
part of the name of the account specific database. This revealed some
extra information about the account and wasn't necessary.
At first the hash of the address was planned to be used as a
deterministic id, but we already have a keyUid which is calculated as
sha256 hash of account's public key and has similar properties:

  • it is deterministic
  • doesn't reveal accounts public key or address in plain

@status-github-bot
Copy link

Pull Request Checklist

  • Have you updated the documentation, if impacted (e.g. docs.status.im)?

@status-im-auto
Copy link
Member

status-im-auto commented Dec 5, 2019

Jenkins Builds

Click to see older builds (18)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 2b8a8e7 #1 2019-12-05 12:27:43 ~1 min linux 📦zip
✔️ 2b8a8e7 #1 2019-12-05 12:32:37 ~5 min ios 📦zip
✔️ 2b8a8e7 #1 2019-12-05 12:33:48 ~7 min android 📦aar
✔️ 1897dae #2 2019-12-05 17:12:52 ~41 sec linux 📦zip
✔️ 1897dae #2 2019-12-05 17:15:23 ~3 min ios 📦zip
✔️ 1897dae #2 2019-12-05 17:19:01 ~6 min android 📦aar
✔️ 903935c #3 2019-12-06 10:43:19 ~43 sec linux 📦zip
✔️ 903935c #3 2019-12-06 10:47:54 ~5 min ios 📦zip
✔️ 903935c #3 2019-12-06 10:48:55 ~6 min android 📦aar
✔️ c6bc1a4 #4 2019-12-06 12:30:08 ~40 sec linux 📦zip
✔️ c6bc1a4 #4 2019-12-06 12:32:46 ~3 min ios 📦zip
✔️ c6bc1a4 #4 2019-12-06 12:35:34 ~6 min android 📦aar
✔️ 37163af #5 2019-12-06 12:36:13 ~35 sec linux 📦zip
✔️ 37163af #5 2019-12-06 12:38:08 ~2 min ios 📦zip
✔️ 37163af #5 2019-12-06 12:42:31 ~6 min android 📦aar
✔️ eedd8b5 #6 2019-12-08 18:32:42 ~48 sec linux 📦zip
✔️ eedd8b5 #6 2019-12-08 18:34:34 ~2 min ios 📦zip
✔️ eedd8b5 #6 2019-12-08 18:38:46 ~6 min android 📦aar
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b7c382f #7 2019-12-08 19:02:07 ~40 sec linux 📦zip
✔️ b7c382f #7 2019-12-08 19:03:49 ~2 min ios 📦zip
✔️ b7c382f #7 2019-12-08 19:08:41 ~7 min android 📦aar
✔️ 4c0d8de #8 2019-12-09 09:21:57 ~1 min linux 📦zip
✔️ 4c0d8de #8 2019-12-09 09:24:00 ~3 min ios 📦zip
✔️ 4c0d8de #8 2019-12-09 09:27:49 ~7 min android 📦aar

@rasom rasom self-assigned this Dec 5, 2019
Account's address was used as a primary key in accounts db and as a
deterministic id of an account in some API calls. Also it was used as a
part of the name of the account specific database. This revealed some
extra information about the account and wasn't necessary.
At first the hash of the address was planned to be used as a
deterministic id, but we already have a keyUid which is calculated as
sha256 hash of account's public key and has similar properties:
- it is deterministic
- doesn't reveal accounts public key or address in plain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants