You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(coprocessor): remove tenant notion from sns-worker (#1903)
* db-migration: remove tenant_id from ciphertexts128 and add host_chain_id to pbs_computations
* sns-worker: remove tenant API key and refactor keyset loading
* tests: align sns-worker and harness with key_id/host_chain_id
* docs/compose: update sns-worker usage for tenant-less schema
* test-harness: drop keys.chain_id filter after tenant removal
* style: cargo fmt
* Clarify keyset invariant and rotation TODO
Copy file name to clipboardExpand all lines: coprocessor/fhevm-engine/sns-worker/README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,31 +17,33 @@ Upon receiving a notification, it mainly does the following steps:
17
17
18
18
Runs sns-executor. See also `src/bin/utils/daemon_cli.rs`
19
19
20
-
20
+
21
21
## Running a SnS Worker
22
22
23
-
### The SnS key can be retrieved from the Large Objects table (pg_largeobject). Before running a worker, the sns_pk should be imported into tenants tables as shown below. If tenants table is not in use, then keys can be passed with CLI param --keys_file_path
23
+
### The SnS key can be retrieved from the Large Objects table (pg_largeobject). Before running a worker, the sns_pk should be imported into the keys table as shown below. If the keys table is not in use, then keys can be passed with CLI param --keys_file_path
24
24
```sql
25
25
-- Example query to import sns_pk from fhevm-keys/sns_pk
26
26
-- Import the sns_pk into the Large Object storage
27
27
sns_pk_loid := lo_import('../fhevm-keys/sns_pk');
28
28
29
-
-- Update the tenants table with the new Large Object OID
30
-
UPDATEtenants
29
+
-- Update the keys table with the new Large Object OID
30
+
UPDATEkeys
31
31
SET sns_pk = sns_pk_loid
32
-
WHEREtenant_id=1;
32
+
WHEREsequence_number=(SELECT sequence_number FROM keys ORDER BY sequence_number DESCLIMIT1);
33
33
```
34
34
35
35
### Multiple workers can be launched independently to perform 128-PBS computations.
0 commit comments