Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
f409b69e
Commit
f409b69e
authored
Apr 24, 2020
by
Hubert Chathi
Browse files
add declarations for Inbound/OutboundGroupSession
parent
954d6f98
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/index.d.ts
View file @
f409b69e
...
...
@@ -59,6 +59,31 @@ declare class Utility {
ed25519verify
(
key
:
string
,
message
:
string
,
signature
:
string
):
void
;
}
declare
class
InboundGroupSession
{
constructor
();
free
():
void
;
pickle
(
key
:
string
):
string
;
unpickle
(
key
:
string
,
pickle
:
string
):
string
;
create
(
session_key
:
string
):
string
;
import_session
(
session_key
:
string
):
string
;
decrypt
(
message
:
string
):
object
;
session_id
():
string
;
first_known_index
():
number
;
export_session
(
message_index
:
number
):
string
;
}
declare
class
OutboundGroupSession
{
constructor
();
free
():
void
;
pickle
(
key
:
string
):
string
;
unpickle
(
key
:
string
):
string
;
create
():
void
;
encrypt
(
plaintext
:
string
):
string
;
session_id
():
string
;
session_key
():
string
;
message_index
():
number
;
}
declare
class
PkEncryption
{
constructor
();
free
():
void
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment