Abstract
Self-sovereign identity (SSI) is considered to be a "killer application" of blockchain. However, there is a lack of systematic architecture designs for blockchain-based SSI systems to support methodical development. An aspect of such gap is demonstrated in current solutions, which are considered coarse grained and may increase data security risks. In this paper, we first identify the lifecycles of three major SSI objects (i.e., key, identifier, and credential) and present fine-grained design patterns critical for application development. These patterns are associated with particular state transitions, providing a systematic view of system interactions and serving as a guidance for effective use of these patterns. Further, we present an SSI platform architecture, which advocates the notion of Design-Pattern-as-a-Service. Each design pattern serves as an API by wrapping the respective pattern code to ease application development and improve scalability and security. We implement a prototype and evaluate it on feasibility and scalability.
Introduction
Self-Sovereign Identity (SSI) represents a paradigm shift where users maintain full ownership and control over their digital identity data, eliminating the need for centralized intermediaries like ICANN or traditional Certificate Authorities. While blockchain technology is widely recognized as a primary enabler for SSI, the current landscape of blockchain-based SSI solutions often lacks systematic architectural guidelines. Existing implementations frequently rely on coarse-grained, ad-hoc designs that complicate development and introduce significant scalability and security risks, particularly regarding access control during credential sharing. This research addresses these gaps by formalizing a robust architecture for SSI systems.
Methodology: Lifecycle Mapping and DPaaS
The proposed framework adopts a pattern-driven approach to SSI development, centered on the lifecycles of three core objects: Keys, Identifiers (DIDs), and Credentials.
Lifecycle-Driven Design Patterns
The authors identify specific state transitions for each object and map fine-grained design patterns to them. For instance, key management involves states like creation and storage, supported by patterns such as Shard Distribution for recovery. Identifier management covers registration and revocation, while credential management focuses on generation, disclosure, and verification.
Design-Pattern-as-a-Service (DPaaS) Architecture
The core contribution is a three-layer platform architecture: the Service Layer, the Off-Chain Data Layer, and the On-Chain Data Layer. This "Design-Pattern-as-a-Service" (DPaaS) model transforms theoretical design patterns into deployable, RESTful APIs. By wrapping complex SSI logic into accessible services, the architecture lowers the barrier for developers, allowing them to implement secure identity solutions without deep blockchain expertise.
Key Insights
- Data Separation: To ensure scalability and privacy, the architecture strictly separates data. On-chain storage is reserved for lightweight mappings (e.g., DID to public key) and cryptographic hashes via an Anchoring Registry. Actual identity facts and credentials reside in off-chain repositories.
- Granular Privacy Controls: The platform enables precise data-sharing through patterns like Time-Constrained Access and One-Off Access. These patterns use JSON Web Tokens (JWTs) to cryptographically enforce how long or how many times a verifier can access a credential.
- Abstraction of Complexity: DPaaS abstracts the cryptographic and blockchain-specific complexities, providing a scalable blueprint for building secure SSI applications.
Evaluation and Results
The prototype was implemented using Node.js, MySQL, and a Parity Proof-of-Authority (PoA) blockchain. Performance testing via JMeter yielded the following results:
- DID Registration: Achieved a throughput of approximately 70 tps, primarily limited by the blockchain's 5-second block interval.
- Credential Access: The Time-Constrained Access service reached a higher throughput of ~200 tps.
- Anchoring Latency: Hashing and anchoring a batch of 1,000 credentials to the blockchain required only ~0.284 seconds.
These results confirm the feasibility and scalability of the DPaaS approach for organizational-level SSI adoption.
Conclusion and Future Work
While the DPaaS framework provides a systematic path for SSI development, the current Issuer Signup process relies on a centralized "super account" for approval. Future research aims to decentralize this governance model, potentially using a consortium-based voting mechanism via smart contracts to manage the registration of new credential issuers.
Summary updated