AppleSauce
Preparing search index...
applesauce-core
Helpers
getHiddenContentEncryptionMethods
Variable getHiddenContentEncryptionMethods
Const
getHiddenContentEncryptionMethods
:
(
kind
:
number
,
signer
:
EncryptedContentSigner
,
)
=>
|
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
|
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
= getEncryptedContentEncryptionMethods
Type declaration
(
kind
:
number
,
signer
:
EncryptedContentSigner
,
)
:
|
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
|
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
Returns either nip04 or nip44 encryption methods depending on event kind
Parameters
kind
:
number
signer
:
EncryptedContentSigner
Returns
|
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
|
{
decrypt
:
(
pubkey
:
string
,
ciphertext
:
string
,
)
=>
string
|
Promise
<
string
>
;
encrypt
:
(
pubkey
:
string
,
plaintext
:
string
)
=>
string
|
Promise
<
string
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
AppleSauce
Loading...
Returns either nip04 or nip44 encryption methods depending on event kind