Skip to content

fix: index numeric, boolean and missing credential fields - #474

Open
Sotatek-Patrick-Vu wants to merge 1 commit into
WebOfTrust:mainfrom
veridian-id:fix/seeker-index-scalars-main
Open

Sotatek-Patrick-Vu wants to merge 1 commit into
WebOfTrust:mainfrom
veridian-id:fix/seeker-index-scalars-main

Conversation

@Sotatek-Patrick-Vu

@Sotatek-Patrick-Vu Sotatek-Patrick-Vu commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes credential indexing for non-string and missing attributes (#470). A smaller alternative to #472.

  • Seeker.index() / unindex() build each key with indexKey(): a string stays as is, any other scalar is JSON-encoded (an integral float shares the int's key), and a credential missing an indexed field is skipped for that index instead of raising
  • SCALAR_TYPES includes integer and boolean, so those fields get indexes
  • An attestation (no a.i) gets no issuee indexes
  • Eq does not match a boolean against a number (True == 1 in Python, not in JSON), and its index lookup uses the same encoding

@iFergal
iFergal requested a review from kentbull November 30, 2026 11:20
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.

1 participant