@hiero-did-sdk/lifecycle
v0.1.7
Published
This package provides a lifecycle management system for orchestrating complex asynchronous operations within the Hiero DID SDK. It enables developers to define sequences of steps, handle asynchronous actions, manage signatures, and control the flow of exe
Readme
@hiero-did-sdk/lifecycle
This package provides a lifecycle management system for orchestrating complex asynchronous operations within the Hiero DID SDK. It enables developers to define sequences of steps, handle asynchronous actions, manage signatures, and control the flow of execution with features like pausing and resuming. By streamlining these processes, it simplifies the development of robust and reliable DID-related applications.
Features
- Step-by-Step Execution: Define a clear sequence of asynchronous steps for DID operations.
- Callback Integration: Incorporate custom callback functions at any point in the lifecycle.
- Signature Handling: Include signature generation and verification steps seamlessly.
- Pause/Resume Functionality: Introduce pauses for manual intervention or external interactions, and resume execution when ready.
- Error Handling: Implement robust error handling with catch steps to gracefully handle exceptions.
- Flexible Builder Pattern: Provides a fluent API for building and configuring lifecycles with ease.
- TypeScript Support: Built with TypeScript for enhanced developer experience and type safety.
Installation
Install the package via npm:
npm install @hiero-did-sdk/lifecycleUsage
Learn how to use the lifecycle management system to orchestrate complex asynchronous operations for DID management in the Lifecycle Management Guide.
API Reference
Learn more in the Lifecycle Management API Reference.
Running Tests
Unit tests are included to validate functionality. Run tests with:
npm testLicense
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
References
- Hiero DID SDK - The official repository for the Hiero DID SDK, containing the complete source code and documentation.
- Hedera JavaScript SDK - The official Hedera JavaScript SDK, used for interacting with the Hedera network.
