diff --git a/nip46/dynamic-signer.go b/nip46/dynamic-signer.go index 94ac21d..931f47b 100644 --- a/nip46/dynamic-signer.go +++ b/nip46/dynamic-signer.go @@ -163,7 +163,7 @@ func (p *DynamicSigner) HandleRequest(ctx context.Context, event nostr.Event) ( } thirdPartyPubkey, err := nostr.PubKeyFromHex(req.Params[0]) if err != nil { - resultErr = fmt.Errorf("first argument to 'nip44_encrypt' is not a valid pubkey string") + resultErr = fmt.Errorf("first argument to 'nip44_encrypt' is not a valid pubkey hex") break } if p.AuthorizeEncryption != nil && !p.AuthorizeEncryption(ctx, event.PubKey) { @@ -185,7 +185,7 @@ func (p *DynamicSigner) HandleRequest(ctx context.Context, event nostr.Event) ( } thirdPartyPubkey, err := nostr.PubKeyFromHex(req.Params[0]) if err != nil { - resultErr = fmt.Errorf("first argument to 'nip04_decrypt' is not a valid pubkey string") + resultErr = fmt.Errorf("first argument to 'nip04_decrypt' is not a valid pubkey hex") break } if p.AuthorizeEncryption != nil && !p.AuthorizeEncryption(ctx, event.PubKey) { diff --git a/nip46/static-key-signer.go b/nip46/static-key-signer.go index 74e5bca..8816a81 100644 --- a/nip46/static-key-signer.go +++ b/nip46/static-key-signer.go @@ -117,7 +117,7 @@ func (p *StaticKeySigner) HandleRequest(_ context.Context, event nostr.Event) ( } thirdPartyPubkey, err := nostr.PubKeyFromHex(req.Params[0]) if err != nil { - resultErr = fmt.Errorf("first argument to 'nip04_encrypt' is not a valid pubkey string") + resultErr = fmt.Errorf("first argument to 'nip04_encrypt' is not a valid pubkey hex") break } plaintext := req.Params[1] @@ -140,7 +140,7 @@ func (p *StaticKeySigner) HandleRequest(_ context.Context, event nostr.Event) ( } thirdPartyPubkey, err := nostr.PubKeyFromHex(req.Params[0]) if err != nil { - resultErr = fmt.Errorf("first argument to 'nip04_decrypt' is not a valid pubkey string") + resultErr = fmt.Errorf("first argument to 'nip04_decrypt' is not a valid pubkey hex") break } ciphertext := req.Params[1] @@ -163,7 +163,7 @@ func (p *StaticKeySigner) HandleRequest(_ context.Context, event nostr.Event) ( } thirdPartyPubkey, err := nostr.PubKeyFromHex(req.Params[0]) if err != nil { - resultErr = fmt.Errorf("first argument to 'nip04_encrypt' is not a valid pubkey string") + resultErr = fmt.Errorf("first argument to 'nip04_encrypt' is not a valid pubkey hex") break } plaintext := req.Params[1] @@ -186,7 +186,7 @@ func (p *StaticKeySigner) HandleRequest(_ context.Context, event nostr.Event) ( } thirdPartyPubkey, err := nostr.PubKeyFromHex(req.Params[0]) if err != nil { - resultErr = fmt.Errorf("first argument to 'nip04_decrypt' is not a valid pubkey string") + resultErr = fmt.Errorf("first argument to 'nip04_decrypt' is not a valid pubkey hex") break } ciphertext := req.Params[1]