zkemail / zk-email-verify

Verify any text in any sent or received email, cryptographically and via only trusting the sending mailserver.
https://prove.email
MIT License
347 stars 75 forks source link

add SplitBytesToWords circuit to bytes.circom #201

Closed remicolin closed 3 months ago

remicolin commented 3 months ago

Description

Add SplitBytesToWords circom template to bytes.circom helper file. The introduced circuit allows to split an array of bytes into an array of words, which is useful for casting a message or modulus before RSA verification.

Type of Change

Please delete options that are not relevant.

Checklist:

remicolin commented 3 months ago

I will add another circuit and test to split words into words with a different n and k