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
Returns
Uint8Array
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
>
Parameters
peer
:
SignedPublicKeyBundle
|
PublicKeyBundle
myPreKey
:
PublicKey
isRecipient
:
boolean
Returns
Promise
<
Uint8Array
>
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
Loading...
all the known pre-keys, newer keys first,