// Copyright 2018 MaidSafe.net limited.
//
// This SAFE Network Software is licensed to you under The General Public License (GPL), version 3.
// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. Please review the Licences for the specific language governing
// permissions and limitations relating to use of the SAFE Network Software.

use crate::utils::{SYM_ENC_KEY_LEN, SYM_ENC_NONCE_LEN};
use threshold_crypto::{PK_SIZE as BLS_PUBLIC_KEY_LEN, SIG_SIZE};
use xor_name::XOR_NAME_LEN;

/// Array containing public key bytes.
pub type AsymPublicKey = [u8; BLS_PUBLIC_KEY_LEN];

/// Array containing private key bytes.
pub type SymSecretKey = [u8; SYM_ENC_KEY_LEN];
/// Array containing nonce bytes.
pub type SymNonce = [u8; SYM_ENC_NONCE_LEN];

/// Array containing BLS public key.
pub type BlsPublicKey = [u8; BLS_PUBLIC_KEY_LEN];
/// Array containing a BLS Signature.
pub type Signature = [u8; SIG_SIZE];

/// Array containing `XorName` bytes.
pub type XorNameArray = [u8; XOR_NAME_LEN];
