1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use holochain_json_api::{error::JsonError, json::*};
#[derive(Deserialize, Clone, PartialEq, Eq, Hash, Debug, Serialize, DefaultJson)]
pub struct CryptoArgs {
    pub payload: String,
    pub method: CryptoMethod,
}

#[derive(Deserialize, Clone, PartialEq, Eq, Hash, Debug, Serialize, DefaultJson)]
pub enum CryptoMethod {
    Sign,
    Encrypt,
    Decrypt,
}