17 lines
384 B
Plaintext
Raw Normal View History

2025-10-02 17:55:20 +02:00
//test
pragma circom 2.1.9;
include "../hash_bn/poseidon2_hash.circom";
include "../hash_bn/poseidon2_perm.circom";
2025-10-02 17:55:20 +02:00
include "../misc/constants.circom";
template derive_public_key(){
signal input secret_key;
signal output out;
component hash = Compression();
component dst = KDF();
2025-10-02 17:55:20 +02:00
hash.inp[0] <== dst.out;
hash.inp[1] <== secret_key;
out <== hash.out;
}