Skip to content

Commit

Permalink
Merge pull request #9 from spruceid/feat/header-t
Browse files Browse the repository at this point in the history
Export header type function
  • Loading branch information
chunningham authored Mar 29, 2022
2 parents e432c30 + aed6c24 commit fdae05e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ pub struct Header {
t: String,
}

impl Header {
pub fn t<'a>(&'a self) -> &'a str {
&self.t.as_str()
}
}

#[async_trait]
pub trait SignatureScheme {
type Signature;
Expand Down

0 comments on commit fdae05e

Please sign in to comment.