use crate::types::ProgramAuthority;
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct AuthorityConfig {
#[cfg_attr(feature = "serde", serde(with = "serde_big_array::BigArray"))]
pub authorities: [ProgramAuthority; 64],
}
impl AuthorityConfig {
pub fn decode(data: &[u8]) -> Option<Self> {
let mut data_slice = data;
borsh::BorshDeserialize::deserialize(&mut data_slice).ok()
}
}