use core::num::NonZeroU64;

use crate::KeyType;

use crate::cid::SEQ64_BITS;

pub trait KeyPart: Sized {
    const TY: KeyType;
    const PREFIX_BITS: u32;
}

impl KeyPart for NonZeroU64 {
    const TY: KeyType = KeyType::U64;
    const PREFIX_BITS: u32 = SEQ64_BITS;
}
