YPC  0.2.0
enclave_interaction.h
1 #include "ypc/terminus/interaction.h"
2 
3 namespace ypc {
4 namespace terminus {
6 public:
7  typedef struct _forward {
8  inline _forward(const ypc::bytes &_encrypted_skey, const ypc::bytes &_sig)
9  : encrypted_skey(_encrypted_skey), signature(_sig) {}
10 
11  ypc::bytes encrypted_skey;
12  ypc::bytes signature;
13  } forward_info;
14 
16 
17  bytes generate_allowance(const bytes &private_key, const bytes &param_hash,
18  const bytes &target_enclave_hash,
19  const bytes &dian_pkey, const bytes &dhash);
20 
21  forward_info forward_private_key(const bytes &private_key,
22  const bytes &dian_pkey,
23  const bytes &enclave_hash);
24 };
25 } // namespace terminus
26 } // namespace ypc
ypc::terminus::crypto_pack
Definition: crypto_pack.h:10
ypc::terminus::interaction_base
Definition: interaction.h:6
ypc::utc::bytes< byte_t, ::ypc::utc::byte_encode::raw_bytes >
ypc::terminus::enclave_interaction::_forward
Definition: enclave_interaction.h:7
ypc::terminus::enclave_interaction
Definition: enclave_interaction.h:5