@zkp2p/reclaim-witness-sdk
Version:
<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>
16 lines (15 loc) • 851 B
TypeScript
import { EncryptionAlgorithm, OPRFOperator, ZKEngine, ZKOperator } from '@reclaimprotocol/zk-symmetric-crypto';
import { CommunicationBridge } from '../window-rpc/types';
export declare const ALL_ENC_ALGORITHMS: EncryptionAlgorithm[];
/**
* The goal of this RPC operator is if the attestor client
* is running in a WebView, it can call the native
* application to perform the ZK operations
*/
export declare function makeWindowRpcZkOperator(algorithm: EncryptionAlgorithm, bridge: CommunicationBridge, zkEngine?: ZKEngine): ZKOperator;
/**
* The goal of this RPC operator is if the attestor client
* is running in a WebView, it can call the native
* application to perform the OPRF operations
*/
export declare function makeWindowRpcOprfOperator(algorithm: EncryptionAlgorithm, bridge: CommunicationBridge, zkEngine?: ZKEngine): OPRFOperator;