aboutsummaryrefslogtreecommitdiffstats
path: root/src/locked.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/locked.rs')
-rw-r--r--src/locked.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/locked.rs b/src/locked.rs
index 4db0423..3cad927 100644
--- a/src/locked.rs
+++ b/src/locked.rs
@@ -89,3 +89,17 @@ impl PasswordHash {
self.hash.data()
}
}
+
+pub struct PrivateKey {
+ private_key: Vec,
+}
+
+impl PrivateKey {
+ pub fn new(private_key: Vec) -> Self {
+ Self { private_key }
+ }
+
+ pub fn private_key(&self) -> &[u8] {
+ self.private_key.data()
+ }
+}