confidential-computing-modules icon indicating copy to clipboard operation
confidential-computing-modules copied to clipboard

[modules/eth-driver, enclave] オンチェーンGroupKeyCounter revert時のリトライ処理

Open osuketh opened this issue 4 years ago • 0 comments

Groupkey暗号化からTxがブロックに取り込まれるまでの間に順序が変更してしまうと、以下でrevertが発生する。以下のrevertが発生した場合は、それをStateRuntimeノードで受け取り、再度GroupKeyで暗号化してTx送信する。そのためには、StateRuntimeノードのhost側に RequestId => クライアント暗号文の形式で一定期間キャッシュしておき、revertメッセージにRequestIdを含める必要がある。

https://github.com/LayerXcom/anonify/blob/0284be4edbc27a494397bfd440db8b432effbec0/contracts/Anonify.sol#L134-L141

osuketh avatar Feb 12 '21 04:02 osuketh