atlas-config-interface 3.0.0

Atlas config program interface.
Documentation
//! Type definitions for the Atlas config program.

/// A simple public key representation
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Pubkey([u8; 32]);

impl Pubkey {
    /// Create a new Pubkey from bytes
    pub fn new(bytes: [u8; 32]) -> Self {
        Self(bytes)
    }
    
    /// Get the bytes of the public key
    pub fn to_bytes(&self) -> [u8; 32] {
        self.0
    }
}

/// Configuration keys structure
#[derive(Debug, Default)]
pub struct ConfigKeys {
    /// Keys associated with the configuration
    pub keys: Vec<(Pubkey, bool)>,
}