arXiv Science⌕ Search

arXiv subjects

Nikhil Vanjani

Publications and source records attributed to Nikhil Vanjani.

2 recordsLinked to original sources

Praxis: Practical Witness Encryption for NP

Witness encryption encrypts a message to an NP statement so that whoever holds a witness can decrypt. Over a decade after its introduction, known constructions for general NP statements are far from practical or rest on heuristic or broken assumptions. We propose Praxis, a practical scheme for NP, and prove it extractable in the bilinear generic group and random oracle models under Module-SIS. Our instantiation encrypts to a Groth16 verifier on BN254, set up honestly, which serves every NP relation at the same cost: at $100$-bit security, its ciphertext is $7.88$ GiB, encryption takes $2^{34.2}$ base-field multiplications, and decryption with a Groth16 proof $2^{33.0}$ on average. We give Lean 4 proofs of correctness and extraction at this instantiation's parameters. Praxis starts from the rank-gap template of the recent feasibility result [Hair and Sahai, arXiv 2026]. Where they raise the gap to keep decryption polynomial, we fix it, so decryption ends with a search that is exponential but concretely fast: $O(2^{λ/4} N^{1/4})$ expected operations for a statement in $N$ Boolean unknowns at $λ$-bit security. A quadratic arithmetic program makes our hidden matrix low rank, so where their ciphertext encodes a basis of a matrix space, ours holds factors of width two, which a pairing multiplies. Weights and identities from an extension field tie copies of this matrix, so an adversary telling encryptions apart yields a witness or a Module-SIS solution. For the same Groth16 statement and $100$-bit security level, Praxis reduces the ciphertext size and the cost of encryption of either of their constructions by over ten orders of magnitude, and that of decryption by over six.

cs.CR↗

Functional Adaptor Signatures: Beyond All-or-Nothing Blockchain-based Payments

In scenarios where a seller holds sensitive data $x$, like patient records, and a buyer seeks to obtain an evaluation of a function $f$ on $x$, solutions in trustless environments like blockchain fall into two categories: (1) Smart contract-powered solutions and (2) cryptographic solutions using tools such as adaptor signatures. The former offers atomic transactions where the buyer learns $f(x)$ upon payment. However, this approach is inefficient, costly, lacks privacy for the seller's data, and is incompatible with blockchains such as bitcoin. In contrast, the adaptor signature-based approach addresses all of the above issues but comes with an "all-or-nothing" guarantee, where the buyer fully extracts $x$ and does not support extracting $f(x)$. In this work, we bridge the gap between these approaches, developing a solution that enables fair functional sales while offering all the above properties like adaptor signatures. Towards this, we propose functional adaptor signatures (FAS), a novel cryptographic primitive and show how it can be used to enable functional sales. We formalize the security properties of FAS, among which is a new notion called witness privacy to capture seller's privacy, which ensures the buyer does not learn anything beyond $f(x)$. We present multiple variants of witness privacy, namely, witness hiding, witness indistinguishability, and zero-knowledge. We introduce two efficient constructions of FAS supporting linear functions based on groups of prime-order and lattices, that satisfy the strongest notion of witness privacy. A central conceptual contribution of our work lies in revealing a surprising connection between functional encryption and adaptor signatures. We implement our FAS construction for Schnorr signatures and show that for reasonably sized seller witnesses, all operations are quite efficient even for commodity hardware.

cs.CR↗