Commit 6bbcac1
refactor: simplify PKI module naming and struct names
- Rename modules: identity_auth → identity, approval_workflow → approval
- Simplify struct names in identity module:
* IdentityContext → Context
* VerificationCredential → Credential
* VerificationCredentials → Credentials
* AuthResult → AuthOutcome (avoid Rust Result conflict)
* TrustPolicy → Policy
* TrustEvaluator → Evaluator
- Simplify struct names in approval module:
* WorkflowState → State
* ApprovalWorkflow → Workflow
- Simplify struct names in validation module:
* ValidationIssue → Issue
* ValidationResult → ValidationOutcome
* ValidationPolicy → Policy
- Add backward compatibility type aliases for all renamed structs
- All 44 tests passing after refactoring
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6e77836 commit 6bbcac1
File tree
6 files changed
+1828
-727
lines changed- crates/capsula-pki/src
- ra
6 files changed
+1828
-727
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments