Skip to main content

age_setup/
keypair.rs

1use crate::public_key::PublicKey;
2use crate::secret_key::SecretKey;
3#[derive(Debug)]
4pub struct KeyPair {
5    pub public: PublicKey,
6    pub secret: SecretKey,
7}
8impl KeyPair {
9    pub(crate) fn new(public: PublicKey, secret: SecretKey) -> Self {
10        Self { public, secret }
11    }
12}