LayerXcom / confidential-computing-modules

A Module for Privacy-preserving State Transitions with Verifiability
90 stars 9 forks source link

feature = "backup-enable" でない場合にコンパイルエラー #636

Open laysakura opened 3 years ago

laysakura commented 3 years ago

1つめ

https://github.com/LayerXcom/anonify/blob/6107d33769433b1d0df50d07732a53bd21a360b1/modules/anonify-enclave/src/group_key.rs#L45:L45

error[E0049]: method `process_handshake` has 0 type parameters but its trait declaration has 1 type parameter
  --> modules/anonify-enclave/src/group_key.rs:44:25
   |
44 |       fn process_handshake<
   |  _________________________^
45 | |         #[cfg(feature = "backup-enable")] F: FnOnce(&[u8], u32) -> Result<PathSecret>,
46 | |     >(
   | |_____^ found 0 type parameters, expected 1

2つめ

error[E0061]: this function takes 3 arguments but 2 arguments were supplied
  --> modules/anonify-enclave/src/handshake.rs:90:19
   |
90 |         group_key.process_handshake(
   |                   ^^^^^^^^^^^^^^^^^ expected 3 arguments
91 |             enclave_context.store_path_secrets(),
   |             ------------------------------------
92 |             &handshake,
   |             ---------- supplied 2 arguments

3つめ

error[E0046]: not all trait items implemented, missing: `key_vault_endpoint`
  --> modules/anonify-enclave/src/context.rs:72:1
   |
72 | impl ConfigGetter for AnonifyEnclaveContext {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `key_vault_endpoint` in implementation
   |
   = help: implement the missing item: `fn key_vault_endpoint(&self) -> &str { todo!() }`