Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Re: What is the purpose of scripts in transaction?
by
colatkinson
on 27/12/2017, 20:08:59 UTC
⭐ Merited by ETFbitcoin (2)
Hi All,

I try to understand how bitcoin works .
In general, it is clean for me. But i can not understand for what transaction scripts are needed? Why was this introduced?
It seems for any transaction the script is same, so , why it is used here?

Not all transaction scripts are the same! The majority are, but scripting provides for more flexibility. The standard way of using custom scripts is to use a P2SH transaction, in which funds can only be unlocked if a certain script is fulfilled. This is how multisig, time locks, and even puzzles can be added to funds.

As always, the Bitcoin Book (http://chimera.labs.oreilly.com/books/1234000001802/ch05.html) is a great resource if you want to know more.