Preparing search index...
The search index is not available
AppleSauce
AppleSauce
applesauce-signers
SimpleSigner
Class SimpleSigner
A Simple NIP-07 signer class
Index
Constructors
constructor
Properties
key
nip04
nip44
Methods
get
Public
Key
sign
Event
Constructors
constructor
new
SimpleSigner
(
key
?:
Uint8Array
<
ArrayBufferLike
>
)
:
SimpleSigner
Parameters
Optional
key
:
Uint8Array
<
ArrayBufferLike
>
Returns
SimpleSigner
Properties
key
key
:
Uint8Array
nip04
nip04
:
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
)
=>
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
Promise
<
string
>
;
}
= ...
nip44
nip44
:
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
)
=>
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
Promise
<
string
>
;
}
= ...
Methods
get
Public
Key
getPublicKey
()
:
Promise
<
string
>
Returns
Promise
<
string
>
sign
Event
signEvent
(
event
:
EventTemplate
)
:
Promise
<
VerifiedEvent
>
Parameters
event
:
EventTemplate
Returns
Promise
<
VerifiedEvent
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
key
nip04
nip44
Methods
get
Public
Key
sign
Event
AppleSauce
Loading...
A Simple NIP-07 signer class