a User interface that is like a Signer but can't sign.

This commit is contained in:
fiatjaf
2025-03-10 02:25:57 -03:00
parent fa17e4003f
commit 94e8b6790a
6 changed files with 37 additions and 5 deletions

View File

@@ -6,6 +6,8 @@ import (
"github.com/nbd-wtf/go-nostr"
)
var _ nostr.Keyer = (*ManualSigner)(nil)
// ManualSigner is a signer that delegates all operations to user-provided functions.
// It can be used when an app wants to ask the user or some custom server to manually provide a
// signed event or an encrypted or decrypted payload by copy-and-paste, for example, or when the