Open koolamusic opened 2 days ago
Cross-Program Interaction: Attestation and resolver programs will need to interact with the schema registry via cross-program invocations (CPIs), which should be optimized for performance.
Considerations: We need to ensure that the combined program doesn't become too large, which could complicate maintenance or exceed Solana's program size limits. Internal Interfaces: Clearly define interfaces between attestation and resolver modules to maintain modularity and ease future potential separations.
Treating the authority program as a custom resolver prevents circular dependencies between authority verification and attestation logic. The authority program can handle authority-specific logic and maintain its own state independently.
Considerations: Ensure that the authority program conforms to the resolver interface expected by the attestation program. We might also have to come to terms that some data may be duplicated within our Authority program to maintain independence and avoid tight coupling with other part of the attestation service. i.e "attestation & schema registry"
@pauleke65 this might interest you
@pauleke65 this might interest you
Oh, I see. Makes sense now
The implementation for authorities and resolvers should be
cross program invocation
-- This would mean that the model for authorities will exist as an abstraction. An abstraction that can be backward compatible with existing standards likeEAS
.Having them within the resolvers means that our attestation service would by default require a resolver for
CPI
and we can have ours as the fallback resolver implementation.