PrivateKeyBundleV1
Class: PrivateKeyBundleV1
Implements
PrivateKeyBundleV1
Constructors
constructor
new PrivateKeyBundleV1(bundle
)
Parameters
Name | Type |
---|---|
bundle | PrivateKeyBundleV1 |
Defined in
crypto/PrivateKeyBundle.ts:138
Properties
identityKey
identityKey: PrivateKey
Implementation of
proto.PrivateKeyBundleV1.identityKey
Defined in
crypto/PrivateKeyBundle.ts:134
preKeys
preKeys: PrivateKey
[]
Implementation of
proto.PrivateKeyBundleV1.preKeys
Defined in
crypto/PrivateKeyBundle.ts:135
version
version: number
= 1
Defined in
crypto/PrivateKeyBundle.ts:136
Methods
addPreKey
addPreKey(): Promise
<void
>
Returns
Promise
<void
>
Defined in
crypto/PrivateKeyBundle.ts:176
encode
encode(): Uint8Array
Returns
Uint8Array
Defined in
crypto/PrivateKeyBundle.ts:227
findPreKey
findPreKey(which
): PrivateKey
Parameters
Name | Type |
---|---|
which | PublicKey |
Returns
Defined in
crypto/PrivateKeyBundle.ts:167
getCurrentPreKey
getCurrentPreKey(): PrivateKey
Returns
Defined in
crypto/PrivateKeyBundle.ts:162
getPublicKeyBundle
getPublicKeyBundle(): PublicKeyBundle
Returns
Defined in
crypto/PrivateKeyBundle.ts:183
sharedSecret
sharedSecret(peer
, myPreKey
, isRecipient
): Promise
<Uint8Array
>
Parameters
Name | Type |
---|---|
peer | SignedPublicKeyBundle | PublicKeyBundle |
myPreKey | PublicKey |
isRecipient | boolean |
Returns
Promise
<Uint8Array
>
Defined in
crypto/PrivateKeyBundle.ts:195
generate
Static
generate(wallet?
): Promise
<PrivateKeyBundleV1
>
Parameters
Name | Type |
---|---|
wallet? | Signer |
Returns
Promise
<PrivateKeyBundleV1
>