ZKP use RSA library or module to encrypt data

Thread Starter

AlixX

Joined Jun 17, 2023
3
is it possible ZKP use RSA library or module to encrypt data in multiple layers like this? is it correct way to make it?

ZKP Proof Generation:
In the function generate_zkp(prosumer, challenge), you are generating a Zero-Knowledge Proof (ZKP) using the prosumer's private key to prove ownership of the ABE key. The prosumer's private key is generated in the generate_abe_key function and passed to this function. Here's the relevant code:
python
Copy code
def generate_zkp(prosumer, challenge):
private_key = get_private_key() # This is the ABE private key
public_key = private_key.public_key()
hash = SHA256.new(challenge)
signer = PKCS115_SigScheme(private_key)
signature = signer.sign(hash)
 
Top