mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-06 07:03:09 +00:00
16 lines
353 B
Plaintext
16 lines
353 B
Plaintext
//test
|
|
pragma circom 2.1.9;
|
|
|
|
include "../hash_bn/poseidon2_hash.circom";
|
|
include "../misc/constants.circom";
|
|
|
|
template derive_public_key(){
|
|
signal input secret_key;
|
|
signal output out;
|
|
|
|
component hash = Poseidon2_hash(2);
|
|
component dst = NOMOS_KDF_V1();
|
|
hash.inp[0] <== dst.out;
|
|
hash.inp[1] <== secret_key;
|
|
out <== hash.out;
|
|
} |