UNPKG

identity-based-encryption-bn254

Version:

![build](https://github.com/randa-mu/identity-based-encryption-bn254/actions/workflows/build.yml/badge.svg)

21 lines (20 loc) 516 B
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;