lockchain-crypto 0.1.0

Small shim layer crate for cryptographic operations on lockchain data records
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! A simple data layout

use lcc::traits::AutoEncoder;

/// Represents some packed data – includes nonce and blob
#[derive(Serialize, Deserialize)]
pub struct PackedData {
    pub nonce: Vec<u8>,
    pub iv: Vec<u8>,
    pub data: Vec<u8>,
}

impl AutoEncoder for PackedData {}