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

@@ -9,6 +9,8 @@ import (
"github.com/nbd-wtf/go-nostr/nip49"
)
var _ nostr.Keyer = (*EncryptedKeySigner)(nil)
// EncryptedKeySigner is a signer that must ask the user for a password before every operation.
// It stores the private key in encrypted form (NIP-49) and uses a callback to request the password
// when needed for operations.