mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(auth): expose sealed finalizer evidence
Signed-off-by: Cea Stapleton Cordasco <261786559+cea-block@users.noreply.github.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user