v0.2.5-pre.005
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-wallet-lib/src/password.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
/// Owned VIEW password material.
|
||||
///
|
||||
@@ -21,6 +21,11 @@ impl ViewPassword {
|
||||
pub fn new(value: std::string::String) -> Self {
|
||||
return Self { value };
|
||||
}
|
||||
|
||||
/// Borrows exact UTF-8 password bytes inside Wallet cryptographic operations.
|
||||
pub(crate) fn as_bytes(&self) -> &[u8] {
|
||||
return self.value.as_bytes();
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for ViewPassword {
|
||||
@@ -55,6 +60,11 @@ impl OwnerPassword {
|
||||
pub fn new(value: std::string::String) -> Self {
|
||||
return Self { value };
|
||||
}
|
||||
|
||||
/// Borrows exact UTF-8 password bytes inside Wallet cryptographic operations.
|
||||
pub(crate) fn as_bytes(&self) -> &[u8] {
|
||||
return self.value.as_bytes();
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for OwnerPassword {
|
||||
|
||||
Reference in New Issue
Block a user