Skip to content

feat(vt-flow): applicant verification + on-chain permission session#442

Merged
genaris merged 4 commits into
feat/vt-flow-validation-processfrom
feat/applicationt-verification
Jun 16, 2026
Merged

feat(vt-flow): applicant verification + on-chain permission session#442
genaris merged 4 commits into
feat/vt-flow-validation-processfrom
feat/applicationt-verification

Conversation

@tarunvadde

Copy link
Copy Markdown
Contributor
  • New verifyOfferedCredential runs the on-chain validator-active check , plus a digest soft check, wired into the e2e verifyCredential hook so the verification path is actually utilized.
  • validateAndOfferCredential now calls createOrUpdatePermissionSession after setPermissionVPToValidated
  • publishCredentialAsLinkedVp extracts schemaBaseId from credentialSchema.id so the LinkedVP endpoint matches the schema.

Signed-off-by: Tarun Vadde <vaddeofficial@gmail.com>
Signed-off-by: Tarun Vadde <vaddeofficial@gmail.com>
@tarunvadde tarunvadde requested review from genaris and lotharking May 13, 2026 18:49

@lotharking lotharking left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion: please don’t forget to run this test with a funded wallet

throw new Error('Record has no credentialExchangeRecordId; nothing to verify')
}

const holderPerm = await chain.getPermission(Number(record.permId))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, I would prefer to use the indexer API to resolve this.
However, we should keep in mind that there is a possibility that the indexer may become inconsistent with the ledger. In those cases, I would rather detect and surface these kinds of errors explicitly to preserve consistency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched the two perm lookups in verifyOfferedCredential to VeranaIndexerService.getPermission(). Kept chain RPC as a fallback when callers don't wire an indexer (auto-flow path, existing tests) so this doesn't break those. Please let me know if there's anything else to be done here.

@tarunvadde

Copy link
Copy Markdown
Contributor Author

Just a suggestion: please don’t forget to run this test with a funded wallet

Yes, @lotharking. I tested with my funded wallet and also verified transactions here https://idx.devnet.verana.network/

Signed-off-by: Tarun Vadde <vaddeofficial@gmail.com>
@lotharking

Copy link
Copy Markdown
Collaborator

Hey @genaris, looks good from my side.

@genaris genaris merged commit 2105c2c into feat/vt-flow-validation-process Jun 16, 2026
@genaris genaris deleted the feat/applicationt-verification branch June 16, 2026 18:49
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.

3 participants