identity-based-encryption-bn254
Version:

21 lines (20 loc) • 516 B
TypeScript
import { Ciphertext } from "./crypto";
/**
* Serialize Ciphertext to ASN.1 structure
* Ciphertext ::= SEQUENCE {
* u SEQUENCE {
* x SEQUENCE {
* c0 INTEGER,
* c1 INTEGER
* },
* y SEQUENCE {
* c0 INTEGER,
* c1 INTEGER
* }
* },
* v OCTET STRING,
* w OCTET STRING
* }
*/
export declare function serializeCiphertext(ct: Ciphertext): Uint8Array;
export declare function deserializeCiphertext(ct: Uint8Array): Ciphertext;