fix(auth): expose sealed finalizer evidence

Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
This commit is contained in:
Cea Stapleton Cordasco
2026-08-03 16:31:15 -05:00
parent 76f9b9f4cd
commit 4affe89a4d
+13
View File
@@ -203,10 +203,23 @@ impl AuthContextInput {
self.nostr_proof.authorized_transport()
}
#[allow(dead_code)]
pub(crate) const fn proof_method(&self) -> AuthMethod {
self.nostr_proof.proof_method()
}
#[allow(dead_code)]
pub(crate) const fn actor_pubkey(&self) -> PublicKey {
self.nostr_proof.actor_pubkey()
}
#[allow(dead_code)]
pub(crate) const fn verified_owner_pubkey(&self) -> Option<PublicKey> {
match self.nostr_proof.verified_delegation() {
Some(delegation) => Some(delegation.owner_pubkey()),
None => None,
}
}
}
impl fmt::Debug for AuthContextV1 {