Port identity services changes from identity-services PR #11#19
Draft
Port identity services changes from identity-services PR #11#19
Conversation
- Add targeted MongoDB indexes for performance
- Add limit/offset pagination support to all find methods
- Make certifiers optional in query conditions
- Improve fuzzy search with normalizeSearchInput
- Cache ProtoWallet('anyone') as class property
- Optimize data array construction in TopicManager
Agent-Logs-Url: https://github.com/bsv-blockchain/overlay-express-examples/sessions/ac051fc4-3093-49a8-ab76-b332d1661af8
Co-authored-by: sirdeggen <8416253+sirdeggen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update identity services to match upstream changes
Port identity services changes from identity-services PR #11
Mar 31, 2026
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.
Syncs the identity services copy in this repo with upstream identity-services#11.
MongoDB indexes
txid+outputIndex(unique),certificate.serialNumber,subject,certifier, compoundsubject+certifier,subject+type,userName, anduserName+certifierPagination
limitandoffsettoIdentityQuerytype, threaded through all lookup → storage manager find paths viafindRecordWithQueryQuery flexibility
certifiersno longer required forattributes,identityKey, orcertificateTypesqueries — now optional filtersSearch improvements
getFuzzyRegexnow tokenizes by word instead of character (reduces catastrophic backtracking on longer inputs)normalizeSearchInputtrims and collapses whitespaceuserNameattribute uses exact match instead of fuzzy regexanyattribute uses$textindex search for queries >2 chars, regex fallback for 2-char queries, rejects <2 charsAllocation reduction
ProtoWallet('anyone')cached as class-level property in bothIdentityTopicManagerandIdentityLookupServiceinstead of per-call/per-output instantiationdataarray built withfor...of+pushinstead ofreducewith spread