mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Update Script javadoc.
This commit is contained in:
parent
273548c863
commit
2f0d4cdbd8
@ -49,16 +49,15 @@ class ScriptChunk {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instructions for redeeming a payment.
|
||||
* <p>Instructions for redeeming a payment.</p>
|
||||
*
|
||||
* <p>Bitcoin transactions don't specify what they do directly. Instead <a href="https://en.bitcoin.it/wiki/Script">a
|
||||
* small binary stack language</a> is used to define programs that when evaluated return whether the transaction
|
||||
* "accepts" or rejects the other transactions connected to it.</p>
|
||||
*
|
||||
* <p>bitcoinj does not evaluate/run scripts. The reason is that doing so requires the connected transactions, ie, all
|
||||
* transactions, and as a lightweight/SPV client we don't store them all. Instead tx validity is decided by miners
|
||||
* and we rely purely on the majority consensus to determine if the scripts are valid. This class therefore just lets
|
||||
* you manipulate and parse them.</p>
|
||||
* <p>In SPV mode, scripts are not run, because that would require all transactions to be available and lightweight
|
||||
* clients don't have that data. In full mode, this class is used to run the interpreted language. It also has
|
||||
* static methods for building scripts.</p>
|
||||
*/
|
||||
public class Script {
|
||||
// Some constants used for decoding the scripts, copied from the reference client
|
||||
|
Loading…
Reference in New Issue
Block a user