Skip to content

Commit

Permalink
seals: add SealWitness constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 15, 2024
1 parent 8b9d5cc commit 072b293
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions single_use_seals/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ where Seal: SingleUseSeal
impl<Seal> SealWitness<Seal>
where Seal: SingleUseSeal
{
pub fn new(published: Seal::PubWitness, client: Seal::CliWitness) -> Self {
Self {
published,
client,
_phantom: PhantomData,
}
}

pub fn verify_seal_closing(
&self,
seal: impl Borrow<Seal>,
Expand Down

0 comments on commit 072b293

Please sign in to comment.