v0.2.6-pre.010
This commit is contained in:
19
crates/ksp-app-wallet-desk/src/wallet_security.rs
Normal file
19
crates/ksp-app-wallet-desk/src/wallet_security.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
// file: crates/ksp-app-wallet-desk/src/wallet_security.rs
|
||||
// version: 1
|
||||
|
||||
//! OWNER-only credential rotation contracts for Wallet Desk.
|
||||
|
||||
use ts_rs::TS; // rust-rules: trait-import
|
||||
|
||||
/// New credential moved frontend -> Rust for one explicit Wallet password rotation.
|
||||
#[derive(serde::Deserialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/ksp_app_wallet_desk/wallet_security/WalletPasswordRotationRequestDto.ts")]
|
||||
pub(crate) struct WalletPasswordRotationRequestDto {
|
||||
/// New password transported only for the explicit rotation call.
|
||||
pub(crate) password: String,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../unit_tests/wallet_security.rs"]
|
||||
mod tests;
|
||||
Reference in New Issue
Block a user