Zero knowlege proof of compositeness
Recorded: Nov. 30, 2025, 1:06 a.m.
| Original | Summarized |
Zero knowlege proof of compositeness Skip to content PROBABILITY STATS EXPERT TESTIMONY PRIVACY HIPAA WRITING BLOG ABOUT CLIENTS
(832) 422-8646 Zero knowlege proof of compositeness Posted on 29 November 2025 by John A zero knowledge proof (ZKP) answers a question without revealing anything more than answer. For example, a digital signature proves your possession of a private key without revealing that key. I tried the smallest possible base [1] and it worked. In general you may have to try a few bases. And for a few rare numbers (Carmichael numbers) you won’t be able to find a base. But if you do find a base b such that bn−1 is not congruent to 1 mod n, you know with certainty that b is composite. Lewis Carroll and ZKP [1] You could try b = 1, but then bn−1 is always 1. This example shows that the existence of a base for which bn−1 = 1 (mod n) doesn’t prove anything. Categories : MathTags : Number theoryBookmark the permalink Post navigation Leave a ReplyYour email address will not be published. Required fields are marked *Comment * Name * Δ Search for: My colleagues and I have decades of consulting experience helping companies solve complex problems involving data privacy, applied math, and statistics. John D. Cook Search for: (832) 422-8646 |
Zero knowledge proof of compositeness A zero-knowledge proof (ZKP) demonstrates the validity of a statement without revealing any additional information beyond the fact that the statement is true. This concept is illustrated through various examples, including digital signatures and verification of properties within mathematical systems. A concrete example involves demonstrating the compositeness of a number, such as the large number presented: n = 244948974278317817239218684105179099697841253232749877148554952030873515325678914498692765804485233435199358326742674280590888061039570247306980857239550402418179621896817000856571932268313970451989041. The principle relies on Fermat’s Little Theorem, which states that if *n* is a prime number and *b* is not divisible by *n*, then *b*<sup>*n*</sup> - 1 = 1 (mod *n*). A composite number can be demonstrated by selecting a base *b* for which *b*<sup>*n*</sup> - 1 is not congruent to 1 modulo *n*. For instance, attempting to use *b* = 2 produces a result where *b*<sup>*n*</sup> - 1 is not congruent to 1 mod *n*, providing definitive proof of the number’s compositeness. This verification is efficiently achieved through Python, where `pow(2, n-1, n)` returns 10282...4299, confirming the non-congruence. The selection of a base *b* is crucial; attempting *b* = 1 yields a consistent result of 1, demonstrating that the existence of a base that satisfies the theorem does not provide specific information about *n*. The concept extends to broader applications of zero-knowledge proofs. Non-constructive proofs, such as the Intermediate Value Theorem, can be viewed as ZKPs, proving the existence of a zero in a given interval without revealing its precise location. The interest in ZKPs arises from their ability to simplify verification processes. Specifically, a primality certificate – a proof that a number is likely prime – can be verified much more quickly than performing the computationally intensive calculations required to determine primality from scratch. This efficiency has significant implications for applications like cryptocurrencies, where ZKPs can demonstrate that transaction constraints are upheld (e.g., preventing negative spending amounts) without revealing the details of those transactions. Furthermore, ZKPs represent a powerful tool beyond traditional mathematical proofs. They can be employed to verify properties of greater practical relevance, such as those found in accounting, where the confidentiality of transaction data is paramount. The utility of ZKPs hinges on their capacity to provide assurance without divulging sensitive information, offering a novel approach to security and data integrity across diverse fields. |