mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-02 13:13:09 +00:00
remove from note the compression - only in Merkle tree
This commit is contained in:
parent
c5b746665c
commit
6d71ee945d
@ -245,7 +245,7 @@ for i in range(25):
|
||||
else:
|
||||
secret_root = Compression([slot_secret_path[i],secret_root])
|
||||
sk = poseidon2_hash([F(256174383281726064679014503048630094),starting_slot,secret_root])
|
||||
pk = Compression([F(1296193216988918402894),sk])
|
||||
pk = poseidon2_hash([F(1296193216988918402894),sk])
|
||||
|
||||
note_id = poseidon2_hash([F(65580641562429851895355409762135920462),tx_hash,output_number,value,pk])
|
||||
ticket = poseidon2_hash([F(13887241025832268),F(epoch_nonce),F(slot_number),note_id,sk])
|
||||
|
||||
@ -3,7 +3,6 @@ pragma circom 2.1.9;
|
||||
|
||||
include "../hash_bn/poseidon2_hash.circom";
|
||||
include "../misc/constants.circom";
|
||||
include "../hash_bn/poseidon2_perm.circom";
|
||||
|
||||
template derive_secret_key(){
|
||||
signal input starting_slot;
|
||||
@ -23,7 +22,7 @@ template derive_public_key(){
|
||||
signal input secret_key;
|
||||
signal output out;
|
||||
|
||||
component hash = Compression();
|
||||
component hash = Poseidon2_hash(2);
|
||||
component dst = NOMOS_KDF();
|
||||
hash.inp[0] <== dst.out;
|
||||
hash.inp[1] <== secret_key;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user