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
When SnS workers compute and upload a bootstrapped ciphertext to an S3 bucket, they must notify the transaction sender and share the digest of the uploaded ciphertexts. This should allow the transaction sender to make an attempt to add the tuple (handle, ciphertext128_digest, ciphertext64_digest, key_id) to the Ciphertext Storage in L2 using the ABI add_ciphertext function.
Workflow
SnS worker computes 128-bit ciphertext from ciphertext64 (done)
SnS worker creates digest of both ciphertexts (using Keccak256) and inserts them into Postgres ciphertexts_digest table
Transaction sender receives notification and fetches all tuples (handle, ciphertext_digest, ciphertext128_digest, key_id)
SELECT handle, ciphertext128, ciphertext
FROM ciphertexts_digest
WHERE is_sent = false
AND ciphertext128 IS NOT NULLAND ciphertext IS NOT NULLAND retry_count < $1
NB: New table ciphertexts_digest should be introduced.
Transaction sender creates and executes a transaction for each ciphertext tuple (handle, digest_1, digest_2)
If transaction fails, a retry-send mechanism should be in place
If transaction succeeds, IS_SENT field to be marked as true
Description
When SnS workers compute and upload a bootstrapped ciphertext to an S3 bucket, they must notify the transaction sender and share the digest of the uploaded ciphertexts. This should allow the transaction sender to make an attempt to add the tuple
(handle, ciphertext128_digest, ciphertext64_digest, key_id)
to the Ciphertext Storage in L2 using the ABIadd_ciphertext
function.Workflow
ciphertext64
(done)ciphertexts_digest
tableNOTIFY add_ciphertexts
)NB: New table
ciphertexts_digest
should be introduced.IS_SENT
field to be marked as trueReferences
Unknowns
key_id
. Can we usechain_id
for now?The text was updated successfully, but these errors were encountered: