Feature/batch swap features#640
Closed
Sundriveauto wants to merge 3 commits into
Closed
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
assign_ip_to_categorycontract method with owner-only access controlslist_ip_by_categoryandlist_owner_categoriesquery methodsapi-reference.mdwith the new category schema