aboutsummaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-10-06 17:28:52 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-10-06 17:28:52 -0400
commit60d451bbbe21db90521fc1e5d0731a542c6434c8 (patch)
tree9fc70c9da16da7d3dbb0bd90347c87d6fde9c535 /javascript
parent4d17aa4f05044e8063c75b1592d98f1a92a5e214 (diff)
all the (un)pickles take a Uint8Array
Diffstat (limited to 'javascript')
-rw-r--r--javascript/index.d.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/javascript/index.d.ts b/javascript/index.d.ts
index e558fec..3a1128d 100644
--- a/javascript/index.d.ts
+++ b/javascript/index.d.ts
@@ -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;