AppleSauce
Preparing search index...
applesauce-factory
EventSigner
Interface EventSigner
Nostr event signer
interface
EventSigner
{
getPublicKey
:
()
=>
string
|
Promise
<
string
>
;
nip04
?:
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
;
nip44
?:
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
;
signEvent
:
(
template
:
Helpers
.
EventTemplate
)
=>
Event
|
Promise
<
Event
>
;
}
Index
Properties
get
Public
Key
nip04?
nip44?
sign
Event
Properties
get
Public
Key
getPublicKey
:
()
=>
string
|
Promise
<
string
>
Optional
nip04
nip04
?:
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
Optional
nip44
nip44
?:
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
sign
Event
signEvent
:
(
template
:
Helpers
.
EventTemplate
)
=>
Event
|
Promise
<
Event
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
get
Public
Key
nip04
nip44
sign
Event
AppleSauce
Loading...
Nostr event signer