Expose signature and Signing String

This commit is contained in:
asonix 2019-12-31 18:10:42 -06:00
parent 08be4047ef
commit 58871c67ac
2 changed files with 11 additions and 1 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "http-signature-normalization"
description = "An HTTP Signatures library that leaves the signing to you"
version = "0.1.0"
version = "0.1.1"
authors = ["asonix <asonix@asonix.dog>"]
license-file = "LICENSE"
readme = "README.md"

View file

@ -134,6 +134,16 @@ impl Unverified {
self.algorithm.as_ref()
}
/// Get the signing string used to create the signature
pub fn signing_string(&self) -> &str {
&self.signing_string
}
/// Get the signature itself
pub fn signature(&self) -> &str {
&self.signature
}
/// Verify the signature with the signature and the signing string
///
/// ```rust,ignore