Skip to content

refactor: EnclaveEngine、runtimeに依存する版としない版のtraitを分けた & しない版の handle() において ecall_input を引数から取得できるようにした#601

Merged
laysakura merged 13 commits intomasterfrom
refactor/EnclaveEngine-handle_without_runtime-takes-self
May 23, 2021
Merged

refactor: EnclaveEngine、runtimeに依存する版としない版のtraitを分けた & しない版の handle() において ecall_input を引数から取得できるようにした#601
laysakura merged 13 commits intomasterfrom
refactor/EnclaveEngine-handle_without_runtime-takes-self

Conversation

@laysakura
Copy link
Copy Markdown
Contributor

@laysakura laysakura commented May 22, 2021

Issueへのリンク

(なし)

やったこと

  • EnclaveEngine、runtimeに依存する版(StateRuntimeEnclaveEngine)としない版(BasicEnclaveEngine)にtraitを分けた
    • 元々 handle()handle_without_runtime() が混ざった、使い方に注意が必要なtraitであった
  • BasicEnclaveEngine::handle は self 引数を取り、 ecall_input が取得できるようにした
  • EnclaveEngine::decrypt は実際には復号していないコンストラクタなので、 new と改名

やらないこと

(なし)

動作検証

コンパイル・テスト通ればOK

参考

これから暗号DBを作るに当たり、enclave_inputを取る & runtimeに依存しないEnclaveEngineが必要だったので、先に作りました。

@laysakura laysakura force-pushed the refactor/EnclaveEngine-handle_without_runtime-takes-self branch from cd04468 to 51d09dc Compare May 23, 2021 10:58
@laysakura laysakura force-pushed the refactor/EnclaveEngine-handle_without_runtime-takes-self branch from 2b4a8c6 to 1168306 Compare May 23, 2021 13:13
@laysakura laysakura requested a review from osuketh May 23, 2021 13:47
Copy link
Copy Markdown
Member

@osuketh osuketh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@laysakura laysakura merged commit 25a21a0 into master May 23, 2021
@laysakura laysakura deleted the refactor/EnclaveEngine-handle_without_runtime-takes-self branch May 23, 2021 21:27
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.

2 participants