AppleSauce
Preparing search index...
applesauce-core
Helpers
getPubkeyFromDecodeResult
Function getPubkeyFromDecodeResult
getPubkeyFromDecodeResult
(
result
?:
|
{
data
:
EventPointer
;
type
:
"nevent"
}
|
{
data
:
ProfilePointer
;
type
:
"nprofile"
}
|
{
data
:
AddressPointer
;
type
:
"naddr"
}
|
{
data
:
string
;
type
:
"npub"
}
|
{
data
:
Uint8Array
;
type
:
"nsec"
}
|
{
data
:
string
;
type
:
"note"
}
,
)
:
undefined
|
string
Extra a pubkey from the result of nip19.decode
Parameters
Optional
result
:
|
{
data
:
EventPointer
;
type
:
"nevent"
}
|
{
data
:
ProfilePointer
;
type
:
"nprofile"
}
|
{
data
:
AddressPointer
;
type
:
"naddr"
}
|
{
data
:
string
;
type
:
"npub"
}
|
{
data
:
Uint8Array
;
type
:
"nsec"
}
|
{
data
:
string
;
type
:
"note"
}
Returns
undefined
|
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
AppleSauce
Loading...
Extra a pubkey from the result of nip19.decode