Merge pull request #316 from zk-passport/feat/passport-circuits

remove sha artefacts
This commit is contained in:
turnoffthiscomputer
2025-01-21 16:59:15 +01:00
committed by GitHub
4 changed files with 0 additions and 66 deletions

View File

@@ -1,16 +0,0 @@
pragma circom 2.1.9;
include "../../utils/shaBytes/shaBytesStatic.circom";
template Sha384Tester() {
signal input in_padded[93];
signal input expected[384];
signal output hash[384];
hash <== ShaBytesStatic(384, 93)(in_padded);
for (var i = 0; i < 384; i++) {
assert(hash[i] == expected[i]);
}
}
component main = Sha384Tester();

View File

@@ -1,17 +0,0 @@
pragma circom 2.1.9;
include "../../utils/shaBytes/shaBytesDynamic.circom";
template Sha384Tester() {
signal input in_padded[192];
signal input in_len_padded_bytes;
signal input expected[384];
signal output hash[384];
hash <== ShaBytesDynamic(384, 192)(in_padded, in_len_padded_bytes);
for (var i = 0; i < 384; i++) {
assert(hash[i] == expected[i]);
}
}
component main = Sha384Tester();

View File

@@ -1,16 +0,0 @@
pragma circom 2.1.9;
include "../../utils/shaBytes/shaBytesStatic.circom";
template Sha512Tester() {
signal input in_padded[93];
signal input expected[512];
signal output hash[512];
hash <== ShaBytesStatic(512, 93)(in_padded);
for (var i = 0; i < 512; i++) {
assert(hash[i] == expected[i]);
}
}
component main = Sha512Tester();

View File

@@ -1,17 +0,0 @@
pragma circom 2.1.9;
include "../../utils/shaBytes/shaBytesDynamic.circom";
template Sha512Tester() {
signal input in_padded[192];
signal input in_len_padded_bytes;
signal input expected[512];
signal output hash[512];
hash <== ShaBytesDynamic(512, 192)(in_padded, in_len_padded_bytes);
for (var i = 0; i < 512; i++) {
assert(hash[i] == expected[i]);
}
}
component main = Sha512Tester();