defy.tools
Get Started
Reference
defy.tools
KeyStoreWebStorage
Class KeyStoreWebStorage
Hierarchy (
view full
)
KeyStoreStorage
KeyStoreWebStorage
Index
Constructors
constructor
Properties
backup
Key
Name
session
Expire
Minutes
session
Id
Name
session
Key
Name
Accessors
has
Backup
Key
has
Backup
Key
has
Session
Key
Methods
clear
Session
get
Backup
Key
get
Session
Key
get
Session
Secret
init
Indexes
load
save
set
Backup
Key
set
Session
Key
create
from
Private
Key
from
Storage
Constructors
constructor
new
Key
Store
Web
Storage
(
)
:
KeyStoreWebStorage
Returns
KeyStoreWebStorage
Properties
Static
backup
Key
Name
backup
Key
Name
:
string
= 'defy-backup'
Static
session
Expire
Minutes
session
Expire
Minutes
:
number
= 15
Static
session
Id
Name
session
Id
Name
:
string
= 'defy-session-id'
Static
session
Key
Name
session
Key
Name
:
string
= 'defy-session'
Accessors
has
Backup
Key
get
hasBackupKey
(
)
:
boolean
Returns
boolean
Static
has
Backup
Key
get
hasBackupKey
(
)
:
boolean
Returns
boolean
Static
has
Session
Key
get
hasSessionKey
(
)
:
boolean
Returns
boolean
Methods
clear
Session
clear
Session
(
)
:
void
Returns
void
get
Backup
Key
get
Backup
Key
(
)
:
undefined
|
string
Returns
undefined
|
string
get
Session
Key
get
Session
Key
(
)
:
undefined
|
string
Returns
undefined
|
string
get
Session
Secret
get
Session
Secret
(
renew
?
)
:
string
Parameters
renew
:
boolean
= false
Returns
string
init
Indexes
init
Indexes
(
args
)
:
void
Parameters
args
:
KeyStoreConstructorArgs
Returns
void
load
load
(
password
?
)
:
Promise
<
KeyStoreConstructorArgs
>
Parameters
Optional
password
:
string
Returns
Promise
<
KeyStoreConstructorArgs
>
save
save
(
args
)
:
Promise
<
boolean
>
Parameters
args
:
KeyStoreStorageArgs
Returns
Promise
<
boolean
>
set
Backup
Key
set
Backup
Key
(
value
)
:
void
Parameters
value
:
string
Returns
void
set
Session
Key
set
Session
Key
(
value
)
:
void
Parameters
value
:
string
Returns
void
Static
create
create
(
ctor
)
:
KeyStore
Parameters
ctor
:
(
new
(
)
=>
KeyStoreStorage
)
new
(
)
:
KeyStoreStorage
Returns
KeyStoreStorage
Returns
KeyStore
Static
from
Private
Key
from
Private
Key
(
ctor
,
args
)
:
Promise
<
KeyStore
>
Parameters
ctor
:
(
new
(
)
=>
KeyStoreStorage
)
new
(
)
:
KeyStoreStorage
Returns
KeyStoreStorage
args
:
{
masterKey
?:
HDKey
;
privateKey
:
string
;
}
Optional
master
Key
?:
HDKey
private
Key
:
string
Returns
Promise
<
KeyStore
>
Static
from
Storage
from
Storage
(
ctor
,
password
?
)
:
Promise
<
KeyStore
>
Parameters
ctor
:
(
new
(
)
=>
KeyStoreStorage
)
new
(
)
:
KeyStoreStorage
Returns
KeyStoreStorage
Optional
password
:
string
Returns
Promise
<
KeyStore
>
Introduction
Get Started
Reference
Source
Examples
Defy Social
Get Started
Reference
Preparing search index...
The search index is not available
defy.tools
CONTENTS
Key Storage
KeyStore
KeyStoreFileStorage
KeyStoreStorage
KeyStoreWebStorage
KeyStoreConstructorArgs
KeyStoreStorageArgs
Indexes
HDKIndexType
HDKIndex
HDKIndexLoader
HDKXNotification
HDKXSequentialPrivate
HDKXSingleton
HDKXTimeBasedPublic
HDKXTwoParty
Channels
Channel
ContactChannel
PrivateChannel
Content
ContentDocument
Note
Notification
Subscription
Content Payload
NostrKinds
ContactChannelPayload
ContactInfo
ContentError
ContentTemplate
NotePayload
NotificationPayload
PrivateChannelContactInfo
PrivateChannelPayload
ProfileMetadata
SubscriptionPayload
Relay
RelayPool
ContentPublishOptions
HDKIndexQueryArgs
HDKIndexRelayFilters
NostrRelaySubscription
QueryJob
RelayRequest
RelayResponse
BIP32
HDKey
Bip32NetworkInfo
Bip32SerializationPrefix
HARDENED_KEY_OFFSET
Versions
Other
NotificationType
DefyContext
DocumentKeyset
DocumentKeysetDTO
HDKIndexDTO
SequentialKeyset
SequentialKeysetDTO
getNowSeconds
getReducedKey
uniqueNotesBySenderAndDate