semaphore-rs-nodejs
Version:
Rust support library for Semaphore
15 lines (14 loc) • 833 B
TypeScript
/* tslint:disable */
/* eslint-disable */
/**
* Compresses a Groth16 proof
* @param proof - An array of 8 hex encoded strings (with optional 0x prefixes) that represent an uncompressed proof
* @returns An array of 4 0x prefixed, hex encoded strings represeting a compressed proof
*/
export function compressProof(proof: [string, string, string, string, string, string, string, string]): [string, string, string, string];
/**
* Decompresses a Groth16 proof
* @param compressedProof - An array of 4 hex encoded strings (with optional 0x prefixes) that represent a compressed proof
* @returns An array of 8 0x prefixed, hex encoded strings representing an uncompressed proof
*/
export function decompressProof(compressedProof: [string, string, string, string]): [string, string, string, string, string, string, string, string];