@hiero-did-sdk/resolver
v0.1.7
Published
This package provides the `resolveDID` function, a core component of the Hiero DID SDK. It resolves Decentralized Identifiers (DIDs) registered on the Hedera network to their corresponding DID Documents.
Readme
@hiero-did-sdk/resolver
This package provides the resolveDID function, a core component of the Hiero DID SDK. It resolves Decentralized Identifiers (DIDs) registered on the Hedera network to their corresponding DID Documents. These documents contain crucial information about the DID subject, such as public keys and authentication mechanisms, which are cryptographically verified by the resolveDID function. By adhering to the DID specification and leveraging the Hedera Consensus Service (HCS), resolveDID ensures secure and verifiable DID resolution, enabling a wide range of DID operations.
Features
- DID Resolution: Resolves Hedera DIDs to their corresponding DID Documents in various formats (JSON, JSON-LD, DID Resolution).
- Cryptographic Verification: Verifies the authenticity and integrity of DID Documents.
- Hedera Network Support: Supports resolving DIDs on the Hedera mainnet and testnet.
- Error Handling: Provides robust error handling for invalid DIDs, network issues, and unsupported formats.
- TypeScript Support: Built with TypeScript to enhance developer experience and type safety.
Installation
Install the package via npm:
npm install @hiero-did-sdk/resolverUsage
Learn how to use the resolveDID function to resolve DID Documents in the resolveDID Guide.
API Reference
Learn more in the resolveDID 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.
