Introduction
The Hedera Custodians Library is a TypeScript utility that simplifies custodial wallet management and account operations for the Hedera network. It provides a foundation for building secure, scalable custodial integrations in TypeScript applications.Key Features
- Simplifies integration with the Hedera network
- Abstracts away complexities of custodial wallet management
- Provides a unified interface for different custodial services
- Enhances security and compliance in digital asset management
Custodial Wallet Management
Custodial wallet management is the practice of a third party being trusted with storage and security concerning the private keys that are associated with the cryptocurrency. Within the Hedera ecosystem, custodial wallet management is essential for the following reasons:- Security: Custodial services have robust security and safety mechanisms to maintain digital assets.
- Institutional Adoption: Many institutional investors require custodial solutions to comply with regulatory requirements and internal risk management policies.
- Simplified User Experience: Custodial services may abstract the complexities of key management, making the user’s interaction with the Hedera network much easier.
- Integration with Traditional Finance: This often bridges cryptocurrency and traditional finance, furthering adoption.
- Multi-signature Support: It can be done in various ways through custodial implementations with multi-signature wallets, which contribute to higher security and make more complex governance structures possible.
- Regulatory Compliance: Custodial services typically have some in-built compliance features to assist users in conforming to KYC/AML.
Fireblocks
If you’re integrating Fireblocks, use the official Fireblocks Hedera SDK Client and Signer, which implements HIP-338. It provides a drop-in HederaClient and a signer for raw-signing via Fireblocks, plus examples for single and multi-signer flows.
In the context of the Hedera ecosystem:
- Secure Storage: HBAR is stored securely on Fireblocks alongside Hedera tokens, using a combination of MPC (Multi-Party Computation) technology and hardware isolation.
- Securing Transactions: It offers a policy engine that enables the setup of custom approval flows for every transaction conducted on the Hedera network.
- Integration: Fireblocks can be integrated into the Hedera network, allowing seamless transactions with Hedera-based assets and their custodial management.
- API Access: The Hedera Custodian Library has full access to the API, which it uses for wallet automation and signing transactions.
DFNS
DFNS (Digital Financial Network & Security) is a custodial wallet infrastructure provider that offers MPC-based key management and transaction signing services. In the Hedera ecosystem:- Key Management: DFNS provides secure key generation and management for Hedera accounts without exposing private keys.
- Programmable Authorization: It offers customizable authorization policies for Hedera transactions, enabling complex approval flows.
- Multi-Tenancy: DFNS supports multi-tenant architectures, allowing businesses to manage multiple Hedera accounts for different users or purposes.
- API-First Approach: The service provides RESTful APIs that the Hedera Custodian Library uses to interact with Hedera accounts and sign transactions.
API Reference
CustodialWalletService
CustodialWalletService
The Creates a new instance of the CustodialWalletService with the specified configuration.Signs a transaction using the configured custodial service.
CustodialWalletService class is the main entry point for interacting with custodial wallets.Constructor
Methods
- Parameters:
request: ASignatureRequestobject containing the transaction to be signed.
- Returns: A
Promisethat resolves to aUint8Arraycontaining the signature.
FireblocksConfig
FireblocksConfig
The Creates a new
FireblocksConfig class represents the configuration for the Fireblocks custodial service. This configuration is used to initialize the CustodialWalletService for Fireblocks integration.Constructor
FireblocksConfig instance.Properties
apiKey: The API key for Fireblocks.apiSecretKey: The API secret key for Fireblocks.
baseUrl: The base URL for the Fireblocks API.vaultAccountId: The Fireblocks vault account ID.assetId: The asset ID for the Hedera token in Fireblocks.
DFNSConfig
DFNSConfig
The Creates a new DFNSConfig instance.
DFNSConfig class represents the configuration for the DFNS custodial service.Constructor
Properties
serviceAccountAuthorizationToken: The authorization token for the DFNS service account.serviceAccountCredentialId: The credential ID for the DFNS service account.serviceAccountPrivateKey: The private key for the DFNS service account.appOrigin: The origin URL of the DFNS app.appId: The ID of the DFNS app.walletId: The ID of the DFNS wallet.
SignatureRequest
SignatureRequest