Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/signer
Nip01Signer
Class Nip01Signer
Implements
ISigner
Index
Constructors
constructor
Properties
nip04
nip44
Methods
get
Pubkey
sign
ephemeral
from
Secret
Constructors
constructor
new
Nip01Signer
(
secret
:
string
)
:
Nip01Signer
Parameters
secret
:
string
Returns
Nip01Signer
Properties
nip04
nip04
:
{
decrypt
:
(
pubkey
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
}
= ...
nip44
nip44
:
{
decrypt
:
(
pubkey
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
}
= ...
Methods
get
Pubkey
getPubkey
()
:
Promise
<
string
>
Returns
Promise
<
string
>
sign
sign
(
event
:
StampedEvent
,
)
:
Promise
<
{
content
:
string
;
created_at
:
number
;
id
:
string
;
kind
:
number
;
pubkey
:
string
;
sig
:
string
;
tags
:
string
[]
[]
;
}
,
>
Parameters
event
:
StampedEvent
Returns
Promise
<
{
content
:
string
;
created_at
:
number
;
id
:
string
;
kind
:
number
;
pubkey
:
string
;
sig
:
string
;
tags
:
string
[]
[]
;
}
,
>
Static
ephemeral
ephemeral
()
:
Nip01Signer
Returns
Nip01Signer
Static
from
Secret
fromSecret
(
secret
:
string
)
:
Nip01Signer
Parameters
secret
:
string
Returns
Nip01Signer
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
nip04
nip44
Methods
get
Pubkey
sign
ephemeral
from
Secret
Welshman Docs
Loading...