- Change file mode from 644 to 755 for all project files - Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet" - Rename Miner.extra_meta_data to extra_metadata for consistency
21 lines
457 B
Plaintext
Executable File
21 lines
457 B
Plaintext
Executable File
pragma circom 2.0.0;
|
|
|
|
include "node_modules/circomlib/circuits/bitify.circom";
|
|
include "node_modules/circomlib/circuits/poseidon.circom";
|
|
|
|
/*
|
|
* Simple Receipt Attestation Circuit
|
|
*/
|
|
|
|
template SimpleReceipt() {
|
|
signal input receiptHash;
|
|
signal input receipt[4];
|
|
component hasher = Poseidon(4);
|
|
for (var i = 0; i < 4; i++) {
|
|
hasher.inputs[i] <== receipt[i];
|
|
}
|
|
hasher.out === receiptHash;
|
|
}
|
|
|
|
component main = SimpleReceipt();
|