Skip to content

Feature/batch swap features#640

Closed
Sundriveauto wants to merge 3 commits into
AtomicIP:mainfrom
Sundriveauto:feature/batch-swap-features
Closed

Feature/batch swap features#640
Sundriveauto wants to merge 3 commits into
AtomicIP:mainfrom
Sundriveauto:feature/batch-swap-features

Conversation

@Sundriveauto

Copy link
Copy Markdown
Contributor

Closes #619

feat(ip-records): implement hierarchical category assignment system

Introduce a deep hierarchical category structure for IP records (e.g.,
'Software/Cryptography/ZK-Proofs') to allow granular organization.

  • Add assign_ip_to_category contract method with owner-only access controls
  • Implement list_ip_by_category and list_owner_categories query methods
  • Add internal category validation for max depth (5+ levels) and hash format
  • Mitigate path traversal attempts within the hierarchy
  • Update api-reference.md with the new category schema

Add assign_ip_to_category, list_ip_by_category, list_owner_categories
contract methods with owner-only auth. Category validation enforces
max 5-level depth and rejects path traversal (..).

- 3 new error codes: InvalidCategoryHash (29), CategoryDepthExceeded (30),
  CategoryPathTraversal (31)
- 3 new DataKey variants: OwnerCategories, IpCategories (CategoryIps existed)
- validate_category_path view function for off-chain hash computation
- 14 tests covering depth limits, path traversal, owner filtering, idempotency
- Full documentation in api-reference.md
…l-categories

feat: hierarchical category assignment for IP records (#459)
@Sundriveauto Sundriveauto closed this by deleting the head repository Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Hierarchical IP Category Management

1 participant