Documentation
Preparing search index...
@tonconnect/ui
SessionCrypto
Class SessionCrypto
Index
Constructors
constructor
Properties
session
Id
Methods
decrypt
encrypt
stringify
Keypair
Constructors
constructor
new
SessionCrypto
(
keyPair
?:
KeyPair
)
:
SessionCrypto
Parameters
Optional
keyPair
:
KeyPair
Returns
SessionCrypto
Properties
Readonly
session
Id
sessionId
:
string
Methods
decrypt
decrypt
(
message
:
Uint8Array
,
senderPublicKey
:
Uint8Array
)
:
string
Parameters
message
:
Uint8Array
senderPublicKey
:
Uint8Array
Returns
string
encrypt
encrypt
(
message
:
string
,
receiverPublicKey
:
Uint8Array
)
:
Uint8Array
Parameters
message
:
string
receiverPublicKey
:
Uint8Array
Returns
Uint8Array
stringify
Keypair
stringifyKeypair
()
:
KeyPair
Returns
KeyPair
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
session
Id
Methods
decrypt
encrypt
stringify
Keypair
Documentation
Loading...