A backer is an alternative to a traditional KERIwitness that commonly uses Distributed Ledger Technology (DLT) to store the Key Event Log (KEL) for an identifier, providing a secondary root-of-trust through blockchain-based verification rather than native KERI witness infrastructure.
Related Concepts
No related concepts available
Comprehensive Explanation
backer
Protocol Definition
Core Concept
A backer in KERI represents an alternative witness implementation that provides key event witnessing services using infrastructure different from traditional KERI witnesses. The canonical definition from the KERI glossary states: "an alternative to a traditional KERI based Witness commonly using Distributed Ledger Technology (DLT) to store the KEL for an identifier."
The term "backer" encompasses a broader category than "witness" in KERI architecture. While all witnesses are backers, not all backers are traditional KERI witnesses. The relationship is hierarchical:
Backers (general category): Any entity providing secondary root-of-trust for a KEL
Traditional KERI witnesses: Native KERI protocol witnesses
Ledger-registered backers: Witnesses using DLT for KEL storage
Formal Specification Context
The backer concept appears in multiple KERI specification contexts:
IETF KERI Draft Specification: References backers in the context of witness pools and endorser management
PTEL (Public Transaction Event Log) Specification: Defines backers as analogous to witnesses but operating in the TEL context
vLEI Ecosystem Governance Framework: Establishes technical requirements for backer infrastructure in production identity systems
Implementation Notes
Backer Implementation Guidance
Native Witness Implementation
Database Selection: Choose persistent storage appropriate for KEL requirements:
LMDB: High-performance, memory-mapped, used by KERIpy reference implementation
SQLite: Simpler deployment, good for moderate scale
PostgreSQL: Enterprise scale, supports replication and clustering
Key Management: Witness AID keys should be protected with:
Hardware Security Modules (HSMs) for production
Trusted Execution Environments (TEEs) for cloud deployments
Derive Cardano address from same Ed25519 seed as backer AID for cryptographic binding
Implement event queuing with configurable confirmation depth (recommended: 6+ blocks)
Use Enterprise addresses (no staking component) for backer transactions
Separate funding address from identity keys for operational security
Store private keys securely (environment variables are explicitly noted as insecure in documentation)
Transaction Management:
Batch multiple events when possible to reduce costs
Implement retry logic for failed transactions
Monitor for blockchain reorganizations and re-submit if necessary
Maintain off-chain KEL database as primary source, blockchain as secondary proof
The KERI foundational specification establishes that backers provide "secondary root-of-trust" for KELs, distinguishing them from the "primary root-of-trust" which is the cryptographic self-certifying identifier itself.
Purpose and Objectives
Backers serve several critical functions in KERI architecture:
Distributed Consensus: Provide independent verification of key events through redundant storage
Availability: Ensure KEL availability even when the controller is offline
Duplicity Detection: Enable detection of conflicting key event histories through independent observation
Hybrid Trust Models: Allow integration of blockchain-based trust mechanisms with KERI's native cryptographic trust
Migration Paths: Enable transition from ledger-based identity systems to KERI through ledger-backed identifiers
Evolution and Version History
The backer concept has evolved through KERI's development:
Early KERI (2019-2020): Initial focus on native witnesses only
KERI v1.0 (2021): Introduction of backer terminology to encompass alternative witness implementations
PTEL Specification (2022): Formalization of backers in TEL context as "Registrars"
vLEI Production (2023-2024): Real-world deployment of hybrid backer architectures combining witnesses and ledger backers
Protocol Architecture
Layering and Component Organization
Backers operate within KERI's layered architecture:
Operate independently without blockchain dependencies
2. Ledger-Registered Backers
As defined in the glossary: "A witness in KERI that is ledger-registered. It's a type of backer that proof its authenticity by a signing key anchored to the public key of a data item on a (public) blockchain."
Key characteristics:
Blockchain Anchoring: Signing keys cryptographically anchored to blockchain data
Dual Verification: Events verifiable through both KERI signatures and blockchain proofs
Hybrid Trust: Combines KERI's cryptographic trust with blockchain immutability
Event Reception: Backer receives key event via HTTP endpoint
Event Queuing: Event placed in queue for blockchain confirmation delay
Confirmation Wait: System waits for configurable number of block confirmations
Transaction Creation: Backer creates blockchain transaction with event digest
Transaction Submission: Transaction broadcast to blockchain network
Confirmation Monitoring: Wait for transaction inclusion and confirmations
Receipt Generation: After confirmation, generate receipt with transaction hash
Dual Verification: Event verifiable through both KERI signatures and blockchain proof
Key Implementation Detail: The queuing mechanism addresses blockchain reorganization risks by waiting for sufficient confirmations before considering events stably anchored.
Return when threshold reached (don't wait for all)
Caching Strategies
Cache backer endpoints from OOBI resolution
Cache recent KEL state to avoid repeated queries
Cache backer public keys for receipt verification
Error Handling and Recovery
Backer Unavailability
Temporary Failure:
Retry with exponential backoff
Continue if threshold still achievable
Log failures for monitoring
Permanent Failure:
Rotate to new backer via rotation event
Maintain threshold during transition
Preserve historical receipts from failed backer
Duplicity Detection
Detection Process:
Backer observes conflicting event versions
Store both versions in DEL
Generate duplicity evidence
Notify controller and other backers
Refuse further witnessing until resolved
Resolution:
Controller must acknowledge duplicity
Perform recovery rotation if compromise suspected
Reputation damage may be permanent
Blockchain Reorganization
For Ledger Backers:
Monitor for transaction reversal
Maintain confirmation depth requirement
Re-submit transactions if reorganized out
Queue events during reorganization
Testing and Validation
Backer Compliance Testing
Functional Tests:
Event reception and storage
Receipt generation and signing
Duplicity detection
Rotation handling
Security Tests:
Signature verification
Chain integrity validation
Threshold enforcement
Attack scenario simulation
Performance Tests:
Event throughput
Receipt latency
Storage scaling
Network resilience
Integration Testing
Multi-Backer Scenarios:
Threshold satisfaction
Partial backer failures
Conflicting event handling
Rotation coordination
Cross-Implementation Testing:
KERIpy witnesses with Rust backers
Native witnesses with ledger backers
Different blockchain integrations
Production Deployment Checklist
Infrastructure:
Persistent storage configured and backed up
Network endpoints secured (TLS/HTTPS)
Monitoring and alerting configured
Geographic distribution achieved
Security:
Key material properly secured (HSM/TEE)
Access controls implemented
Duplicity detection operational
Incident response procedures documented
Operations:
Backup and recovery tested
Scaling plan documented
Cost monitoring for ledger backers
Performance baselines established
Governance:
Backer selection criteria documented
Threshold rationale documented
Rotation procedures defined
Service level agreements established
Conclusion
Backers represent a critical component of KERI's distributed trust architecture, providing secondary roots-of-trust through redundant, independent event witnessing. The flexibility to use native KERI witnesses, ledger-registered backers, or hybrid configurations enables KERI to adapt to diverse trust models, performance requirements, and regulatory environments while maintaining its core security properties of duplicity evidence and end-verifiability.
The backer abstraction successfully bridges traditional blockchain-based identity systems with KERI's cryptographic trust model, providing migration paths for existing deployments while enabling pure KERI implementations for new systems. This architectural flexibility, combined with rigorous security properties and practical implementation guidance, positions backers as a foundational element in KERI's vision of a trust spanning layer for the internet.
Hybrid Deployment Patterns
Recommended Configuration for Production:
5-7 total backers
Mix: 60% native witnesses, 40% ledger backers
Threshold: 60-70% of total (e.g., 4-of-6 or 5-of-7)
Geographic distribution across 3+ regions
Infrastructure diversity across 2+ providers
Cost Optimization:
Use native witnesses for high-frequency events
Use ledger backers for high-value establishment events
Implement event batching for ledger backers
Consider blockchain transaction costs in threshold design