1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use rust_sodium::crypto::box_::{
NONCEBYTES as ASYM_NONCE_LEN, PUBLICKEYBYTES as ASYM_PUBLIC_KEY_LEN,
SECRETKEYBYTES as ASYM_SECRET_KEY_LEN,
};
use rust_sodium::crypto::secretbox::{KEYBYTES as SYM_KEY_LEN, NONCEBYTES as SYM_NONCE_LEN};
use rust_sodium::crypto::sign::{
PUBLICKEYBYTES as SIGN_PUBLIC_KEY_LEN, SECRETKEYBYTES as SIGN_SECRET_KEY_LEN,
};
use safe_nd::XOR_NAME_LEN;
pub type AsymPublicKey = [u8; ASYM_PUBLIC_KEY_LEN];
pub type AsymSecretKey = [u8; ASYM_SECRET_KEY_LEN];
pub type AsymNonce = [u8; ASYM_NONCE_LEN];
pub type SymSecretKey = [u8; SYM_KEY_LEN];
pub type SymNonce = [u8; SYM_NONCE_LEN];
pub type BlsPublicKey = [u8; threshold_crypto::PK_SIZE];
pub type SignPublicKey = [u8; SIGN_PUBLIC_KEY_LEN];
pub type SignSecretKey = [u8; SIGN_SECRET_KEY_LEN];
pub type XorNameArray = [u8; XOR_NAME_LEN];