Skip to content

Commit

Permalink
Merge pull request #10 from mdsol/feature/clone
Browse files Browse the repository at this point in the history
Add the Debug and Clone traits to `Signer` and `Verifier`
  • Loading branch information
jcarres-mdsol authored Jan 3, 2024
2 parents 787d44a + c2d002c commit db71a97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.4.1
- Add the Debug and Clone traits to `Signer` and `Verifier`.

# 0.4.0
- Update lazy-regex to version 3.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mauth-core"
version = "0.4.0"
version = "0.4.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
1 change: 1 addition & 0 deletions src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use rsa::pkcs1::DecodeRsaPrivateKey;
use rsa::RsaPrivateKey;
use sha2::Sha512;

#[derive(Debug, Clone)]
pub struct Signer {
app_uuid: String,
private_key: RsaPrivateKey,
Expand Down
1 change: 1 addition & 0 deletions src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use rsa::pkcs8::DecodePublicKey;
use rsa::RsaPublicKey;
use sha2::Sha512;

#[derive(Debug, Clone)]
pub struct Verifier {
app_uuid: String,
public_key: RsaPublicKey,
Expand Down

0 comments on commit db71a97

Please sign in to comment.