keep-starknet-strange / raito

Bitcoin ZK client written in Cairo.
https://raito.wtf
MIT License
40 stars 34 forks source link

Implement compute_merkle_root Function #12

Closed AbdelStark closed 2 months ago

AbdelStark commented 3 months ago

Create a function to compute the Merkle root of a list of transaction hashes.

Acceptance Criteria:

mubarak23 commented 3 months ago

@AbdelStark kindly assign this issue to me

maciejka commented 3 months ago

Hi @mubarak23, thanks for your interest. Please give us some time to organize issues.

mubarak23 commented 3 months ago

@maciejka can you point to the zeroSync version of this function

maciejka commented 3 months ago

@maciejka can you point to the zeroSync version of this function

It is a matter of simple search in ZeroSync repo: https://github.com/ZeroSync/ZeroSync/blob/f1bd4736b0bac190ac48cbc8d5fcd92e2e1be7b9/src/block/merkle_tree.cairo#L16

maciejka commented 2 months ago

Hi @mubarak23, how is it going? Any progress on merkle_root computation?

mubarak23 commented 2 months ago

Hi @mubarak23, how is it going? Any progress on merkle_root computation?

yes, am currently trying to find an alternative on cairo 1 for

copy_hash

and continue

maciejka commented 2 months ago

Maybe ask on the project tg group?

wt., 6 sie 2024, 13:42 użytkownik Mubarak Muhammad Aminu < @.***> napisał:

Hi @mubarak23 https://github.com/mubarak23, how is it going? Any progress on merkle_root computation?

yes, am currently trying to find an alternative on cairo 1 for

copy_hash

and continue

— Reply to this email directly, view it on GitHub https://github.com/keep-starknet-strange/raito/issues/12#issuecomment-2271088624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABOTBYJWUYFDJ2BZCQTMKLZQCZDLAVCNFSM6AAAAABLYMMAIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZRGA4DQNRSGQ . You are receiving this because you were mentioned.Message ID: @.***>

maciejka commented 2 months ago

@mubarak23 please have a look: https://github.com/keep-starknet-strange/raito/pull/42. I drafted merkle_root computation. Are you able to test it?

mubarak23 commented 2 months ago

@mubarak23 please have a look: #42. I drafted merkle_root computation. Are you able to test it?

i will write the test