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

Feat: Deletion / Recovery #598

Merged
merged 47 commits into from
Sep 19, 2023
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
51b87ff
updated existing tables, added new tables for recoveries, deletions
0xKitsune Aug 28, 2023
f97fc89
updated schemas
0xKitsune Aug 28, 2023
e437aa8
updated schemas
0xKitsune Aug 28, 2023
f00b8b3
updated tables, added db functions to insert deletions and recoveries
0xKitsune Aug 28, 2023
386eb4a
added eligibility_timestamp to UnprocessedCommitment, added method to…
0xKitsune Aug 28, 2023
ddfd9ff
chore: remove dbg
0xKitsune Aug 28, 2023
6b563a3
updated deletions table, added type to represent deletion and recover…
0xKitsune Aug 28, 2023
b8e4d5d
updated deletion table, updated insert deletion test
0xKitsune Aug 28, 2023
080c24a
updated get_unprocessed_commitments to only get entries that are elig…
0xKitsune Aug 28, 2023
75ad181
Merge pull request #583 from worldcoin/0xkitsune/db-updates
0xKitsune Aug 29, 2023
9324bc0
Feat: Deletion/Recovery API Updates (#586)
0xKitsune Aug 31, 2023
e7c9abd
chore: removing unused whitespace
0xKitsune Aug 31, 2023
3f043a2
removed redundant deletion prover check
0xKitsune Aug 31, 2023
f5e7090
Deletion/recovery task monitor updates (#589)
0xKitsune Sep 6, 2023
68125ec
fixed tests
0xKitsune Sep 6, 2023
490f790
Deletion proof padding (#593)
0xKitsune Sep 11, 2023
a45cafe
Deletion / Recovery Tests (#596)
0xKitsune Sep 18, 2023
6520795
updated existing tables, added new tables for recoveries, deletions
0xKitsune Aug 28, 2023
c9b6177
updated schemas
0xKitsune Aug 28, 2023
221f718
updated schemas
0xKitsune Aug 28, 2023
eacb089
updated tables, added db functions to insert deletions and recoveries
0xKitsune Aug 28, 2023
64782bb
added eligibility_timestamp to UnprocessedCommitment, added method to…
0xKitsune Aug 28, 2023
f76a161
chore: remove dbg
0xKitsune Aug 28, 2023
2eb9f15
updated deletions table, added type to represent deletion and recover…
0xKitsune Aug 28, 2023
cdb88f8
updated deletion table, updated insert deletion test
0xKitsune Aug 28, 2023
eaef3ae
updated get_unprocessed_commitments to only get entries that are elig…
0xKitsune Aug 28, 2023
6771ceb
Feat: Deletion/Recovery API Updates (#586)
0xKitsune Aug 31, 2023
1acfbea
chore: removing unused whitespace
0xKitsune Aug 31, 2023
a45edef
removed redundant deletion prover check
0xKitsune Aug 31, 2023
04134f8
Deletion/recovery task monitor updates (#589)
0xKitsune Sep 6, 2023
c3e8648
fixed tests
0xKitsune Sep 6, 2023
dcbd113
Deletion proof padding (#593)
0xKitsune Sep 11, 2023
261ac81
Deletion / Recovery Tests (#596)
0xKitsune Sep 18, 2023
97c381d
chore: fixed merge conflicts
0xKitsune Sep 18, 2023
3058bec
patched validate_proof_with_age
0xKitsune Sep 18, 2023
5a0b575
chore: cargo fmt
0xKitsune Sep 18, 2023
5944bd0
chore: cargo clippy, fixed validate_proof_with_age test
0xKitsune Sep 18, 2023
fededf8
updated logic to process roots by id instead of leaf_index
0xKitsune Sep 18, 2023
fb1bff6
patched deletion and recovery tests
0xKitsune Sep 18, 2023
611d060
chore: cargo fmt
0xKitsune Sep 18, 2023
c3c0608
chore: cargo clippy
0xKitsune Sep 18, 2023
da3cfe5
Dzejkop/deletion-recovery-dedup-mining (#599)
Dzejkop Sep 18, 2023
d5e5d51
Minor fixes (#600)
Dzejkop Sep 19, 2023
a1f2e86
fix: compare timestamps for database tests
0xKitsune Sep 19, 2023
2d5bc88
fix: patched test_latest_deletion_root
0xKitsune Sep 19, 2023
8beeabc
fix: timestamp comparison for test
0xKitsune Sep 19, 2023
4fc0ac8
fix: updated timestamp comparison for test_get_eligible_unprocessed_c…
0xKitsune Sep 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
patched deletion and recovery tests
  • Loading branch information
0xKitsune committed Sep 18, 2023
commit fb1bff68beeee4297cb8fa9fea8accff349de9e4
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/recover_identity.rs → tests/recover_identities.rs
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ async fn recover_identities() -> anyhow::Result<()> {
.await?;

// Set the root history expirty to 15 seconds
let updated_root_history_expiry = U256::from(15);
let updated_root_history_expiry = U256::from(30);
mock_chain
.identity_manager
.method::<_, ()>("setRootHistoryExpiry", updated_root_history_expiry)?
@@ -142,7 +142,7 @@ async fn recover_identities() -> anyhow::Result<()> {
next_leaf_index += 1;
}

tokio::time::sleep(Duration::from_secs(IDLE_TIME * 3)).await;
tokio::time::sleep(Duration::from_secs(IDLE_TIME * 6)).await;

// Ensure that identities have been deleted
for i in 0..deletion_batch_size {
@@ -169,7 +169,7 @@ async fn recover_identities() -> anyhow::Result<()> {
next_leaf_index += 1;
}

tokio::time::sleep(Duration::from_secs(IDLE_TIME * 3)).await;
tokio::time::sleep(Duration::from_secs(IDLE_TIME * 8)).await;

// Check that the replacement identities have been inserted
for i in 0..deletion_batch_size {
Loading