feat: add examples
This commit is contained in:
17
__enclave/virt_enclave/src/rpc.rs
Normal file
17
__enclave/virt_enclave/src/rpc.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use serde::{ Serialize, Deserialize };
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct InvokeRequest {
|
||||
hash: String,
|
||||
method: String,
|
||||
params: String, // JSON, empty: []
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct InvokeResponse {
|
||||
request_id: String,
|
||||
hash: String,
|
||||
method: String,
|
||||
result: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user