feat(notsecrets): scaffold age-native domain types and trait ports

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Joseph O'Brien
2026-04-01 20:44:05 -04:00
parent 3760b59f31
commit 34d9e3d677
10 changed files with 276 additions and 147 deletions

View File

@@ -0,0 +1,7 @@
use crate::error::AgeError;
use crate::identities::{FileKey, Stanza};
/// Domain port: a recipient that can wrap a file key into a stanza.
pub trait Recipient {
fn wrap_file_key(&self, file_key: &FileKey) -> Result<Stanza, AgeError>;
}