Documentation Index
Fetch the complete documentation index at: https://core.anylayer.org/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The ZKScore Trust Registry contract emits events for all attestation lifecycle activities, schema registration, and trust score updates. These events enable real-time monitoring and off-chain indexing of the trust graph.Attestation Events
Attested
Emitted when a new attestation is created.recipient(address indexed): Attestation recipientattester(address indexed): Who created the attestationuid(bytes32): Unique attestation identifierschema(bytes32 indexed): Schema used
- When
attest()is successfully called - During batch attestation operations
Revoked
Emitted when an attestation is revoked.recipient(address indexed): Original attestation recipientattester(address indexed): Who revoked the attestationuid(bytes32): Attestation identifierschema(bytes32 indexed): Schema used
- When
revoke()is successfully called - During batch revocation operations
Schema Events
SchemaRegistered
Emitted when a new schema is registered.uid(bytes32 indexed): Schema unique identifierregisterer(address indexed): Who registered the schema
- When
registerSchema()is successfully called
Trust Module Events
TrustModuleRegistered
Emitted when a trust evaluation module is registered.module(address indexed): Module contract addressname(string): Module name
- When a new trust module is registered
TrustScoreUpdated
Emitted when a user’s trust score changes.subject(address indexed): User whose score changedoldScore(uint256): Previous trust scorenewScore(uint256): New trust score
- When trust score is recalculated
- After attestation creation/revocation
Event Monitoring
Comprehensive Trust Monitor
Event Analytics
Trust Graph Analysis
Best Practices
Event Handling
- Use Indexed Parameters: Filter efficiently using indexed fields
- Store Event Data: Cache important events off-chain
- Monitor Continuously: Set up real-time listeners
- Handle Reorgs: Account for blockchain reorganizations
- Rate Limiting: Don’t overwhelm with event processing
Performance
- Limit Block Ranges: Query smaller ranges to avoid timeouts
- Pagination: Implement pagination for large datasets
- Batch Processing: Process events in batches
- Caching: Cache frequently accessed event data
- Indexing: Use subgraphs or custom indexers
Related Documentation
- Contract Overview - Contract architecture
- Functions Reference - Function documentation
- Integration Guide - Integration examples
- Trust Modules - Module development