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
60d451bb
Commit
60d451bb
authored
Oct 06, 2020
by
Hubert Chathi
Browse files
all the (un)pickles take a Uint8Array
parent
4d17aa4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/index.d.ts
View file @
60d451bb
...
...
@@ -29,8 +29,8 @@ declare class Account {
remove_one_time_keys
(
session
:
Session
);
generate_fallback_key
();
fallback_key
():
string
;
pickle
(
key
:
string
):
string
;
unpickle
(
key
:
string
,
pickle
:
string
);
pickle
(
key
:
string
|
Uint8Array
):
string
;
unpickle
(
key
:
string
|
Uint8Array
,
pickle
:
string
);
}
declare
class
Session
{
...
...
@@ -64,8 +64,8 @@ declare class Utility {
declare
class
InboundGroupSession
{
constructor
();
free
():
void
;
pickle
(
key
:
string
):
string
;
unpickle
(
key
:
string
,
pickle
:
string
);
pickle
(
key
:
string
|
Uint8Array
):
string
;
unpickle
(
key
:
string
|
Uint8Array
,
pickle
:
string
);
create
(
session_key
:
string
):
string
;
import_session
(
session_key
:
string
):
string
;
decrypt
(
message
:
string
):
object
;
...
...
@@ -77,8 +77,8 @@ declare class InboundGroupSession {
declare
class
OutboundGroupSession
{
constructor
();
free
():
void
;
pickle
(
key
:
string
):
string
;
unpickle
(
key
:
string
,
pickle
:
string
);
pickle
(
key
:
string
|
Uint8Array
):
string
;
unpickle
(
key
:
string
|
Uint8Array
,
pickle
:
string
);
create
():
void
;
encrypt
(
plaintext
:
string
):
string
;
session_id
():
string
;
...
...
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