Preparing search index...
The search index is not available
@xmtp/xmtp-js
@xmtp/xmtp-js
PrivateKeyBundleV2
Class PrivateKeyBundleV2
Implements
PrivateKeyBundleV2
Index
Constructors
constructor
Properties
identity
Key
pre
Keys
version
Methods
add
Pre
Key
encode
equals
find
Pre
Key
get
Current
Pre
Key
get
Public
Key
Bundle
shared
Secret
validate
Public
Keys
from
Legacy
Bundle
generate
Constructors
constructor
new
Private
Key
Bundle
V2
(
bundle
)
:
PrivateKeyBundleV2
Parameters
bundle
:
PrivateKeyBundleV2
Returns
PrivateKeyBundleV2
Properties
identity
Key
identity
Key
:
SignedPrivateKey
pre
Keys
pre
Keys
:
SignedPrivateKey
[]
all the known pre-keys, newer keys first,
version
version
:
number
= 2
Methods
add
Pre
Key
add
Pre
Key
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
encode
encode
(
)
:
Uint8Array
Returns
Uint8Array
equals
equals
(
other
)
:
boolean
Parameters
other
:
this
Returns
boolean
find
Pre
Key
find
Pre
Key
(
which
)
:
SignedPrivateKey
Parameters
which
:
SignedPublicKey
Returns
SignedPrivateKey
get
Current
Pre
Key
get
Current
Pre
Key
(
)
:
SignedPrivateKey
Returns
SignedPrivateKey
get
Public
Key
Bundle
get
Public
Key
Bundle
(
)
:
SignedPublicKeyBundle
Returns
SignedPublicKeyBundle
shared
Secret
shared
Secret
(
peer
,
myPreKey
,
isRecipient
)
:
Promise
<
Uint8Array
>
Parameters
peer
:
SignedPublicKeyBundle
myPreKey
:
SignedPublicKey
isRecipient
:
boolean
Returns
Promise
<
Uint8Array
>
validate
Public
Keys
validate
Public
Keys
(
)
:
boolean
Returns
boolean
Static
from
Legacy
Bundle
from
Legacy
Bundle
(
bundle
)
:
PrivateKeyBundleV2
Parameters
bundle
:
PrivateKeyBundleV1
Returns
PrivateKeyBundleV2
Static
generate
generate
(
wallet
)
:
Promise
<
PrivateKeyBundleV2
>
Parameters
wallet
:
Signer
Returns
Promise
<
PrivateKeyBundleV2
>
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
equals
find
Pre
Key
get
Current
Pre
Key
get
Public
Key
Bundle
shared
Secret
validate
Public
Keys
from
Legacy
Bundle
generate
@xmtp/xmtp-js
Loading...
all the known pre-keys, newer keys first,