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

add declarations for Inbound/OutboundGroupSession

parent 954d6f98
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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