summaryrefslogtreecommitdiffstats
path: root/src/types.rs
blob: 3729555a0329cc567e0edaecf6757c46a4d0ecb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
struct Key {
    key : [u8; 32],
    id  : u32
}

pub struct KeyPair {
    confimed : bool, // has the key-pair been confirmed?
    send     : Key,  // key for outbound messages
    recv     : Key   // key for inbound messages
}