17 lines
384 B
Plaintext
Raw Normal View History

2025-03-26 11:46:34 +01:00
//test
pragma circom 2.1.9;
include "../hash_bn/poseidon2_hash.circom";
2025-11-18 08:14:31 +01:00
include "../hash_bn/poseidon2_perm.circom";
include "../misc/constants.circom";
2025-03-26 11:46:34 +01:00
template derive_public_key(){
signal input secret_key;
signal output out;
2025-11-18 08:14:31 +01:00
component hash = Compression();
component dst = KDF();
hash.inp[0] <== dst.out;
2025-03-26 11:46:34 +01:00
hash.inp[1] <== secret_key;
out <== hash.out;
}