Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: 0xuser on May 16, 2018, 08:36:21 PM



Title: Bitcoin Script tutorial
Post by: 0xuser on May 16, 2018, 08:36:21 PM
Are there any tutorials with code examples on Bitcoin Script (https://en.bitcoin.it/wiki/Script): from basics to complex scripts?


Title: Re: Bitcoin Script tutorial
Post by: shield132 on May 16, 2018, 09:44:44 PM
Are there any tutorials with code examples on Bitcoin Script (https://en.bitcoin.it/wiki/Script): from basics to complex scripts?
To be fair I amn't expert in Technicul discussion but I'll try my best to help.
This is online bitcoin script debugger: https://webbtc.com/script
It's another great (downloadable) tool for you to make things easy: https://bitcointalk.org/index.php?topic=1168604
See this too, if I amn't wrong it's what you want: https://klmoney.wordpress.com/bitcoin-dissecting-transactions-part-2-building-a-transaction-by-hand/


Title: Re: Bitcoin Script tutorial
Post by: yudi31 on May 24, 2018, 08:16:43 PM
Bitcoin script
In general, the Bitcoin transaction serves to redeem the output of the previous transaction by signing it using a valid key. So until here still remember not that Bitcoin transaction will be interrelated with the transaction beforehand


Title: Re: Bitcoin Script tutorial
Post by: pebwindkraft on May 24, 2018, 09:38:04 PM
It depends, what you mean by complex scripts  ;)
You can find for P2PKH and P2SH easily Information, and also for simple multisig. But at the point where a simple ‚if condition‘ comes into play, the sources dry out. Best I have seen here in the forum was from CIYAM here: https://bitcointalk.org/index.php?topic=1300723.0

I haven‘t found much info elsewhere on the net, seems like the whole knowledge is captured in libraries, and no tutorial is available. So need to go the hard way ourself?

I replied a similar post here, with another link inside:
https://bitcoin.stackexchange.com/questions/74375/getting-started-with-script/75349#75349


Title: Re: Bitcoin Script tutorial
Post by: victorkimba17 on May 25, 2018, 03:28:50 AM
a good tutorial on bitcoin script

https://blockgeeks.com/guides/bitcoin-script-guide-part-2/


Title: Re: Bitcoin Script tutorial
Post by: pebwindkraft on May 25, 2018, 01:08:33 PM
a good tutorial on bitcoin script

https://blockgeeks.com/guides/bitcoin-script-guide-part-2/
Thanx, yup, indeed. I‘ll add it to my list  ;)
What I missing now is a way that shows, how to manually create the conditional scripts with regtest and bitcoin-cli. I haven‘t found much, seems like this is covered in libraries, but no precise info can be found in a step-by-step approach  :'(


Title: Re: Bitcoin Script tutorial
Post by: astrong on May 25, 2018, 03:04:08 PM
Are there any tutorials with code examples on Bitcoin Script (https://en.bitcoin.it/wiki/Script): from basics to complex scripts?
To be fair I amn't expert in Technicul discussion but I'll try my best to help.
This is online bitcoin script debugger: https://webbtc.com/script
It's another great (downloadable) tool for you to make things easy: https://bitcointalk.org/index.php?topic=1168604
See this too, if I amn't wrong it's what you want: https://klmoney.wordpress.com/bitcoin-dissecting-transactions-part-2-building-a-transaction-by-hand/
Thank you sir, finally I found the first tutorial about script of bitcoin. though in english language, I still need in video tutorial. Can someone here give me an information where I can find it? I ever try to looking for in youtube channel but it's not complete. I hate to search in google because it is always bring me to bad ads and bad blog.