16 lines
440 B
Rust
16 lines
440 B
Rust
// file: crates/ksp-wallet-lib/src/capability.rs
|
|
// version: 1
|
|
|
|
/// Authorized capability represented by an unlocked Wallet handle.
|
|
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
|
|
pub enum WalletCapability {
|
|
/// Metadata access plus rotation of the current VIEW password only.
|
|
View,
|
|
/// Full Wallet ownership including signing and administration.
|
|
Owner,
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[path = "../unit_tests/capability.rs"]
|
|
mod tests;
|