mirror of
https://github.com/aljazceru/contextvm-docs.git
synced 2025-12-19 23:14:22 +01:00
fix: broken links.
This commit is contained in:
@@ -5,11 +5,11 @@ description: Learn how to create a custom signer for the @contextvm/sdk.
|
||||
|
||||
# Custom Signer Development
|
||||
|
||||
One of the key design features of the `@contextvm/sdk` is its modularity, which is exemplified by the [`NostrSigner`](./nostr-signer-interface) interface. By creating your own implementation of this interface, you can integrate the SDK with any key management system, such as a hardware wallet, a remote signing service (like an HSM), or a browser extension.
|
||||
One of the key design features of the `@contextvm/sdk` is its modularity, which is exemplified by the [`NostrSigner`](/contextvm-docs/signer/nostr-signer-interface) interface. By creating your own implementation of this interface, you can integrate the SDK with any key management system, such as a hardware wallet, a remote signing service (like an HSM), or a browser extension.
|
||||
|
||||
## Why Create a Custom Signer?
|
||||
|
||||
While the [`PrivateKeySigner`](./private-key-signer) is suitable for many development and server-side scenarios, a custom signer is often necessary when:
|
||||
While the [`PrivateKeySigner`](/contextvm-docs/signer/private-key-signer) is a common choice for most applications, there are cases where you may need to use a different approach:
|
||||
|
||||
- **Security is paramount**: You need to keep private keys isolated from the main application logic, for example, in a hardware security module (HSM) or a secure enclave.
|
||||
- **Interacting with external wallets**: Your application needs to request signatures from a user's wallet, such as a browser extension (e.g., Alby, Noster) or a mobile wallet.
|
||||
@@ -90,4 +90,4 @@ Once your custom signer class is created, you can instantiate it and pass it to
|
||||
|
||||
## Next Steps
|
||||
|
||||
With the `Signer` component covered, let's move on to the **[Relay](./relay-handler-interface)**, which handles another critical aspect of Nostr communication: managing connections to relays.
|
||||
With the `Signer` component covered, let's move on to the **[Relay](/contextvm-docs/relay/simple-relay-pool)** component, which handles the connection and management of Nostr relays.
|
||||
@@ -19,7 +19,7 @@ This design offers several key benefits:
|
||||
|
||||
## Interface Definition
|
||||
|
||||
The `NostrSigner` interface is defined in [`core/interfaces.ts`](/core/interfaces#nostrsigner).
|
||||
The `NostrSigner` interface is defined in [`core/interfaces.ts`](/contextvm-docs/core/interfaces#nostrsigner).
|
||||
|
||||
```typescript
|
||||
export interface NostrSigner {
|
||||
@@ -51,10 +51,10 @@ Any class that implements this interface can be used as a signer throughout the
|
||||
|
||||
The SDK provides a default implementation for common use cases and allows for custom implementations for advanced scenarios.
|
||||
|
||||
- **[PrivateKeySigner](./private-key-signer)**: The default implementation, which takes a raw private key string and performs signing operations locally.
|
||||
- **[Custom Signer Development](./custom-signer-development)**: A guide to creating your own signer by implementing the `NostrSigner` interface.
|
||||
- **[PrivateKeySigner](/contextvm-docs/signer/private-key-signer)**: The default implementation, which takes a raw private key string and performs signing operations locally.
|
||||
- **[Custom Signer Development](/contextvm-docs/signer/custom-signer-development)**: For creating custom signers that integrate with key management systems, such as hardware wallets or remote signing services.
|
||||
|
||||
## Next Steps
|
||||
|
||||
- Learn about the default implementation: **[PrivateKeySigner](./private-key-signer)**
|
||||
- Learn how to create your own: **[Custom Signer Development](./custom-signer-development)**
|
||||
- Learn about the default implementation: **[PrivateKeySigner](/contextvm-docs/signer/private-key-signer)**
|
||||
- Learn how to create your own: **[Custom Signer Development](/contextvm-docs/signer/custom-signer-development)**
|
||||
@@ -5,7 +5,7 @@ description: A default signer implementation for the @contextvm/sdk.
|
||||
|
||||
# `PrivateKeySigner`
|
||||
|
||||
The `PrivateKeySigner` is the default implementation of the [`NostrSigner`](./nostr-signer-interface) interface provided by the `@contextvm/sdk`. It is a straightforward and easy-to-use signer that operates directly on a raw private key provided as a hexadecimal string.
|
||||
The `PrivateKeySigner` is the default implementation of the [`NostrSigner`](/contextvm-docs/signer/nostr-signer-interface) interface provided by the `@contextvm/sdk`. It is a straightforward and easy-to-use signer that operates directly on a raw private key provided as a hexadecimal string.
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -67,4 +67,4 @@ For applications requiring a higher level of security, consider creating a custo
|
||||
|
||||
## Next Steps
|
||||
|
||||
- Learn how to build a custom signer: **[Custom Signer Development](./custom-signer-development)**
|
||||
- Learn how to build a custom signer: **[Custom Signer Development](/contextvm-docs/signer/custom-signer-development)**
|
||||
Reference in New Issue
Block a user