keep-starknet-strange / raito

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

[dev] Script to generate a test data. #18

Closed maciejka closed 1 month ago

maciejka commented 1 month ago

Prepare a script to fetch bitcoin blocks and format them as Cairo structs:

lomasson commented 1 month ago

Hi, @maciejka can i take this one ?

onlydustapp[bot] commented 1 month ago

Hey @lomasson! Thanks for showing interest. We've created an application for you to contribute to Raito - Bitcoin ZK Client. Go check it out on OnlyDust!

maciejka commented 1 month ago

Hi, @maciejka can i take this one ?

Hi, welcome! It is yours!

maciejka commented 1 month ago

@lomasson in case jq is too constraining you can use python.

maciejka commented 1 month ago

We need all transactions per block. Start with old blocks, they should be less full.

After thinking about it a bit more I am convinced that python is a better idea. It might not be possible to gather all necessary data in one rpc call.

Please join project tg: https://t.me/RaitoStarknet for more adhoc discussions.

niedz., 4 sie 2024, 11:11 użytkownik lomasson @.***> napisał:

@maciejka https://github.com/maciejka no problem with jq, but i have a question, typically a block has more than 5k transactions and if it's just for testing, do you need all transactions or only 50 or 100 transactions is good enough. Because i'm actually limited by the free apis.

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

lomasson commented 1 month ago

@maciejka I'm already done with jq i take care of the little things (formatting, comments), but if you confirm that it's necessary to change with python, I'll do it. I have delete the message because i have found a solution and i didn't want to disturb you.

maciejka commented 1 month ago

Please sent a draft pr with jq. I wonder if is able to produce all data necessary to validate a block?

niedz., 4 sie 2024, 19:02 użytkownik lomasson @.***> napisał:

@maciejka https://github.com/maciejka I'm already done with jq i take care of the little things (formatting, comments), but if you confirm that it's necessary to change with python, I'll do it. I have delete the message because i have found a solution and i didn't want to disturb you.

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