Description
Implement processing of attestation weights so attestations contribute to the final trust score.
Requirements and context
- Must fetch attestations for identity from DB or on-chain
- Should apply attestation weight multiplier (e.g. sum of weights or weighted average)
- Must respect revoked attestations
- Should cap attestation contribution to avoid gaming
- Must be tested and documented
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/attestation-weights
-
Implement changes
- Add module:
src/services/reputation/attestationWeights.ts
- Integrate with score calculation
- Write comprehensive tests
- Add documentation
- Include JSDoc comments
-
Test and commit
- Run tests
- Cover zero attestations, revoked, cap
- Include test output
Example commit message:
feat: implement attestation weights in reputation engine
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Implement processing of attestation weights so attestations contribute to the final trust score.
Requirements and context
Suggested execution
Implement changes
src/services/reputation/attestationWeights.tsTest and commit
Example commit message:
Guidelines