mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-11 17:55:53 +00:00
Update Script.getPubKeyHash() javadoc
This commit is contained in:
parent
5c908a86f1
commit
28d0743dd6
@ -244,9 +244,15 @@ public class Script {
|
||||
|
||||
/**
|
||||
* If a program matches the standard template DUP HASH160 <pubkey hash> EQUALVERIFY CHECKSIG
|
||||
* then this function retrieves the third element, otherwise it throws a ScriptException.<p>
|
||||
* then this function retrieves the third element.
|
||||
* In this case, this is useful for fetching the destination address of a transaction.
|
||||
*
|
||||
* If a program matches the standard template HASH160 <script hash> EQUAL
|
||||
* then this function retrieves the second element.
|
||||
* In this case, this is useful for fetching the hash of the redeem script of a transaction.
|
||||
*
|
||||
* Otherwise it throws a ScriptException.
|
||||
*
|
||||
* This is useful for fetching the destination address of a transaction.
|
||||
*/
|
||||
public byte[] getPubKeyHash() throws ScriptException {
|
||||
if (isSentToAddress())
|
||||
|
Loading…
x
Reference in New Issue
Block a user