UNPKG

@zkp2p/reclaim-witness-sdk

Version:

<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>

24 lines (23 loc) 722 B
import { EncryptionAlgorithm, OPRFOperator, ZKEngine, ZKOperator } from '@reclaimprotocol/zk-symmetric-crypto'; import { TOPRFPayload } from '../proto/api'; export type ZKOperators = { [E in EncryptionAlgorithm]?: ZKOperator; }; export type OPRFOperators = { [E in EncryptionAlgorithm]?: OPRFOperator; }; export type PrepareZKProofsBaseOpts = { /** get ZK operator for specified algorithm */ zkOperators?: ZKOperators; oprfOperators?: OPRFOperators; /** * max number of ZK proofs to generate concurrently * @default 10 */ zkProofConcurrency?: number; zkEngine?: ZKEngine; }; export type TOPRFProofParams = TOPRFPayload & { mask: Uint8Array; plaintext: Uint8Array; };