Preparing search index...
The search index is not available
@xmtp/xmtp-js
@xmtp/xmtp-js
PrivateKeyBundleV1
Class PrivateKeyBundleV1
Implements
PrivateKeyBundleV1
Index
Constructors
constructor
Properties
identity
Key
pre
Keys
version
Methods
add
Pre
Key
encode
find
Pre
Key
get
Current
Pre
Key
get
Public
Key
Bundle
shared
Secret
validate
Public
Keys
generate
Constructors
constructor
new
Private
Key
Bundle
V1
(
bundle
)
:
PrivateKeyBundleV1
Parameters
bundle
:
PrivateKeyBundleV1
Returns
PrivateKeyBundleV1
Properties
identity
Key
identity
Key
:
PrivateKey
pre
Keys
pre
Keys
:
PrivateKey
[]
all the known pre-keys, newer keys first,
version
version
:
number
= 1
Methods
add
Pre
Key
add
Pre
Key
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
encode
encode
(
)
:
Uint8Array
<
ArrayBufferLike
>
Returns
Uint8Array
<
ArrayBufferLike
>
find
Pre
Key
find
Pre
Key
(
which
)
:
PrivateKey
Parameters
which
:
PublicKey
Returns
PrivateKey
get
Current
Pre
Key
get
Current
Pre
Key
(
)
:
PrivateKey
Returns
PrivateKey
get
Public
Key
Bundle
get
Public
Key
Bundle
(
)
:
PublicKeyBundle
Returns
PublicKeyBundle
shared
Secret
shared
Secret
(
peer
,
myPreKey
,
isRecipient
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
peer
:
SignedPublicKeyBundle
|
PublicKeyBundle
myPreKey
:
PublicKey
isRecipient
:
boolean
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
validate
Public
Keys
validate
Public
Keys
(
)
:
boolean
Returns
boolean
Static
generate
generate
(
wallet
?
)
:
Promise
<
PrivateKeyBundleV1
>
Parameters
Optional
wallet
:
Signer
Returns
Promise
<
PrivateKeyBundleV1
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
identity
Key
pre
Keys
version
Methods
add
Pre
Key
encode
find
Pre
Key
get
Current
Pre
Key
get
Public
Key
Bundle
shared
Secret
validate
Public
Keys
generate
@xmtp/xmtp-js
AuthCache
BrowserStoragePersistence
Ciphertext
Client
ConsentListEntry
Conversations
ConversationV1
ConversationV2
DecodedMessage
EncryptedPersistence
HttpApiClient
InMemoryKeystore
InMemoryPersistence
InvitationV1
KeyGeneratorKeystoreProvider
LocalAuthenticator
MessageV1
MessageV2
NetworkKeystoreProvider
PrefixedPersistence
PrivateKey
PrivateKeyBundleV1
PrivateKeyBundleV2
PublicKey
PublicKeyBundle
SealedInvitation
Signature
SignedPublicKey
SignedPublicKeyBundle
SnapProvider
StaticKeystoreProvider
Stream
ApiClient
Authenticator
Conversation
Keystore
KeystoreProvider
Persistence
Signer
ClientOptions
ConsentListEntryType
ConsentState
ContentOptions
ExtractDecodedType
GetMessageContentTypeFromClient
InvitationContext
KeystoreApiDefs
KeystoreApiEntries
KeystoreApiMethods
KeystoreApiRequestEncoders
KeystoreApiRequestValues
KeystoreApiResponseDecoders
KeystoreInterface
KeystoreInterfaceRequestValues
KeystoreInterfaces
KeyStoreOptions
KeystoreRPC
KeystoreRPCCodec
LegacyOptions
ListMessagesOptions
ListMessagesPaginatedOptions
Message
NetworkOptions
OnConnectionLostCallback
PrivateKeyBundle
PrivatePreferencesAction
PublishParams
Query
QueryAllOptions
QueryParams
QueryStreamOptions
SendOptions
SnapKeystoreApiDefs
SnapKeystoreApiEntries
SnapKeystoreApiMethods
SnapKeystoreApiRequestEncoders
SnapKeystoreApiRequestValues
SnapKeystoreApiResponseDecoders
SnapKeystoreInterface
SnapKeystoreInterfaceRequestValues
SubscribeCallback
SubscribeParams
SubscriptionManager
TopicData
UnsubscribeFn
XmtpEnv
ApiUrls
Compression
keystoreApiDefs
snapKeystoreApiDefs
SortDirection
buildContentTopic
buildDirectMessageTopic
buildDirectMessageTopicV2
buildUserContactTopic
buildUserIntroTopic
buildUserInviteTopic
buildUserPrivateStoreTopic
dateToNs
decodeContactBundle
decodeContent
decrypt
defaultKeystoreProviders
encrypt
exportHmacKey
fromNanoString
generateHmacSignature
hkdfHmacKey
importHmacKey
mapPaginatedStream
nsToDate
retry
toNanoString
verifyHmacSignature
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R
all the known pre-keys, newer keys first,