· 7 years ago · Jun 04, 2018, 09:56 AM
1#[macro_use]
2extern crate serde_derive;
3extern crate serde;
4#[macro_use]
5extern crate serde_json;
6extern crate exonum;
7
8use exonum::crypto::{self, CryptoHash, Hash, PublicKey, SecretKey};
9
10#[derive(Serialize, Debug)]
11struct BodyJson<'a> {
12 pub_key: &'a PublicKey,
13 act_id: &'a str,
14 form_act_id: &'a str,
15 block: &'a str,
16 status: &'a str,
17}
18
19#[derive(Serialize, Debug)]
20struct FullJson<'b> {
21 network_id: &'b str,
22 protocol_version: &'b str,
23 service_id: &'b str,
24 message_id: &'b str,
25 signature: exonum::crypto::SecretKey,
26 body: &'b BodyJson<'b>,
27}