Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/signer
Nip46Signer
Class Nip46Signer
Implements
ISigner
Index
Constructors
constructor
Properties
broker
nip04
nip44
pubkey?
Methods
get
Pubkey
sign
Constructors
constructor
new
Nip46Signer
(
broker
:
Nip46Broker
)
:
Nip46Signer
Parameters
broker
:
Nip46Broker
Returns
Nip46Signer
Properties
broker
broker
:
Nip46Broker
nip04
nip04
:
{
decrypt
:
(
pk
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
encrypt
:
(
pk
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
}
= ...
nip44
nip44
:
{
decrypt
:
(
pk
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
encrypt
:
(
pk
:
string
,
message
:
string
)
=>
Promise
<
string
>
;
}
= ...
Optional
pubkey
pubkey
?:
string
Methods
get
Pubkey
getPubkey
()
:
Promise
<
string
>
Returns
Promise
<
string
>
sign
sign
(
template
:
StampedEvent
)
:
Promise
<
any
>
Parameters
template
:
StampedEvent
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
broker
nip04
nip44
pubkey
Methods
get
Pubkey
sign
Welshman Docs
Loading...