Search
Preparing search index...
The search index is not available
@xmtp/xmtp-js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@xmtp/xmtp-js
PrivateKeyBundleV1
Class PrivateKeyBundleV1
Hierarchy
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
)
:
PrivateKeyBundleV1
Parameters
bundle:
PrivateKeyBundleV1
Returns
PrivateKeyBundleV1
Properties
identity
Key
identity
Key
:
PrivateKey
pre
Keys
pre
Keys
:
PrivateKey
[]
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
:
PublicKey
)
:
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
:
PublicKeyBundle
|
SignedPublicKeyBundle
, myPreKey
:
PublicKey
, isRecipient
:
boolean
)
:
Promise
<
Uint8Array
>
Parameters
peer:
PublicKeyBundle
|
SignedPublicKeyBundle
myPreKey:
PublicKey
isRecipient:
boolean
Returns
Promise
<
Uint8Array
>
validate
Public
Keys
validate
Public
Keys
(
)
:
boolean
Returns
boolean
Static
generate
generate
(
wallet
?:
Signer
)
:
Promise
<
PrivateKeyBundleV1
>
Parameters
Optional
wallet:
Signer
Returns
Promise
<
PrivateKeyBundleV1
>
Exports
Private
Key
Bundle
V1
constructor
identity
Key
pre
Keys
version
add
Pre
Key
encode
find
Pre
Key
get
Current
Pre
Key
get
Public
Key
Bundle
shared
Secret
validate
Public
Keys
generate
Generated using
TypeDoc