v0.2.5-pre.002
This commit is contained in:
15
crates/ksp-wallet-lib/src/capability.rs
Normal file
15
crates/ksp-wallet-lib/src/capability.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user