HashiCorp Vault Signer API Reference
This document provides a concise API reference for the Vault Signer class within the Hedera DID SDK for JavaScript. This class is responsible for signing data, and verifying signatures using HashiCorp Vault as the key store.
Class Diagram
The class diagram below illustrates the core methods of the Vault Signer interface for interacting with cryptographic keys stored in HashiCorp Vault.
Constructor
constructor
constructor(options: SignerOptions)
Initializes a new Signer instance.
- Parameters
-
-
options: (Required) An object containing the necessary options to create aSignerinstance (refer to SignerOptions Type for details).
-
Methods
publicKey
publicKey(): string
Returns the public key associated with the Signer instance in DER format.
- Returns
-
-
The public key in DER format.
-
Errors
| Exception code | Description |
|---|---|
|
When a Vault API call fails. Message contains the error details. |
Class Implementation
The Hiero DID SDK provides the Vault Signer class within its signer-hashicorp-vault package. For further details, refer to the @hiero-did-sdk-js/signer-hashicorp-vault package documentation.