defy.tools
Get Started
Reference
defy.tools
KeyStore
Class KeyStore
Index
Constructors
constructor
Properties
documents
Index
is
In
Extension
notify
Index
owner
Npub?
owner
Pub
Key
Accessors
channels
contacts
is
Empty
is
New
subscriptions
version
Methods
clear
Session
decrypt
encrypt
get
Master
Key
load
save
set
Master
Key
sign
Event
Constructors
constructor
new
Key
Store
(
args
)
:
KeyStore
Parameters
args
:
KeyStoreConstructorArgs
Returns
KeyStore
Properties
documents
Index
documents
Index
:
HDKXSequentialPrivate
is
In
Extension
is
In
Extension
:
boolean
= ...
notify
Index
notify
Index
:
HDKXNotification
Optional
owner
Npub
owner
Npub
?:
string
owner
Pub
Key
owner
Pub
Key
:
string
Accessors
channels
get
channels
(
)
:
PrivateChannel
[]
Returns
PrivateChannel
[]
contacts
get
contacts
(
)
:
ContactChannel
[]
Returns
ContactChannel
[]
is
Empty
get
isEmpty
(
)
:
boolean
Returns
boolean
is
New
get
isNew
(
)
:
boolean
Returns
boolean
subscriptions
get
subscriptions
(
)
:
Subscription
[]
Returns
Subscription
[]
version
get
version
(
)
:
number
Returns
number
Methods
clear
Session
clear
Session
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
decrypt
decrypt
(
content
,
publicKey
?
)
:
string
Parameters
content
:
string
Optional
publicKey
:
string
Returns
string
encrypt
encrypt
(
content
,
publicKey
?
)
:
string
Parameters
content
:
string
Optional
publicKey
:
string
Returns
string
get
Master
Key
get
Master
Key
(
)
:
undefined
|
HDKey
Returns
undefined
|
HDKey
load
load
(
page
?
)
:
Observable
<
KeyStore
>
Parameters
page
:
number
= 0
Returns
Observable
<
KeyStore
>
save
save
(
password
?
)
:
Promise
<
void
>
Parameters
Optional
password
:
string
Returns
Promise
<
void
>
set
Master
Key
set
Master
Key
(
masterKey
)
:
void
Parameters
masterKey
:
HDKey
Returns
void
sign
Event
sign
Event
(
clearTextEvent
)
:
Promise
<
Event
<
number
>
>
Parameters
clearTextEvent
:
UnsignedEvent
Returns
Promise
<
Event
<
number
>
>
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