Skip to content

trust score should not change after multiple verification on the same-day#24

Open
AuroraLantean wants to merge 2 commits intoiam-protocol:developfrom
AuroraLantean:feature/integration-test-expansion
Open

trust score should not change after multiple verification on the same-day#24
AuroraLantean wants to merge 2 commits intoiam-protocol:developfrom
AuroraLantean:feature/integration-test-expansion

Conversation

@AuroraLantean
Copy link
Copy Markdown
Contributor

Test 3.1: trust score should not change after multiple verification on the same-day

  • check trustScore ... 100, should be the same as the 1st time trustScore after 2 verification,
  • call iamVerifier.createChallenge(),
  • call iamVerifier.verifyProof(),
  • call iamAnchor.updateAnchor() ... the 3rd time verification,
  • check trustScore ... 100, should be the same as the 1st time trustScore after 3 verification

Copy link
Copy Markdown
Member

@zkr99 zkr99 left a comment

Choose a reason for hiding this comment

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

Test logic is correct, good work. Two things:

  1. Remove export const ll = console.log from utils.ts. Use console.log directly in your test if you need debug output, but don't export a personal shorthand from shared utilities.

  2. Use a distinct commitment string in your test. "updated_commitment_v2!" is already used in an earlier test. Something like "dedup_trust_score_test!!!" makes it clear which test is which when reading the code.

@AuroraLantean AuroraLantean requested a review from zkr99 April 16, 2026 06:38
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.

2 participants