spawn-access-control 0.1.5

A WASM-based access-control token library for Web3 developers, providing a high-performance, secure, and customizable solution.
docs.rs failed to build spawn-access-control-0.1.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: spawn-access-control-0.1.12

RoleManager

RoleManager is a WebAssembly (WASM) library for managing ownership and roles, with secure role-based access control (RBAC). It provides functionality for assigning roles, removing roles, transferring ownership, and enforcing access control policies based on roles or ownership.

Key Features:

  • Ownership transfer and validation
  • Role assignment and removal
  • Role-based access control (RBAC)

Example Usage:

let mut role_manager = RoleManager::new("admin");
role_manager.assign_role("admin", "editor", "user1").unwrap();
assert!(role_manager.has_role("editor", "user1"));