Skip to content
Snippets Groups Projects
Commit 60d451bb authored by Hubert Chathi's avatar Hubert Chathi
Browse files

all the (un)pickles take a Uint8Array

parent 4d17aa4f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment