Created
August 2, 2019 11:29
-
-
Save cyborch/bd33d7d0171c0485efb6746b6ac613eb to your computer and use it in GitHub Desktop.
Verify membership of a set in an RSA accumulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun verifyMembership(A: BigInteger, x: BigInteger, proof: BigInteger): Boolean { | |
return proof.modPow(x, n) == A | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment