Package org.bitcoinj.script
Enum Script.VerifyFlag
- java.lang.Object
-
- java.lang.Enum<Script.VerifyFlag>
-
- org.bitcoinj.script.Script.VerifyFlag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Script.VerifyFlag>
- Enclosing class:
- Script
public static enum Script.VerifyFlag extends java.lang.Enum<Script.VerifyFlag>
Flags to pass toScript.correctlySpends(Transaction, int, TransactionWitness, Coin, Script, Set)
. Note currently only P2SH, DERSIG and NULLDUMMY are actually supported.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKLOCKTIMEVERIFY
CHECKSEQUENCEVERIFY
CLEANSTACK
DERSIG
DISCOURAGE_UPGRADABLE_NOPS
LOW_S
MINIMALDATA
NULLDUMMY
P2SH
SIGPUSHONLY
STRICTENC
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Script.VerifyFlag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Script.VerifyFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
P2SH
public static final Script.VerifyFlag P2SH
-
STRICTENC
public static final Script.VerifyFlag STRICTENC
-
DERSIG
public static final Script.VerifyFlag DERSIG
-
LOW_S
public static final Script.VerifyFlag LOW_S
-
NULLDUMMY
public static final Script.VerifyFlag NULLDUMMY
-
SIGPUSHONLY
public static final Script.VerifyFlag SIGPUSHONLY
-
MINIMALDATA
public static final Script.VerifyFlag MINIMALDATA
-
DISCOURAGE_UPGRADABLE_NOPS
public static final Script.VerifyFlag DISCOURAGE_UPGRADABLE_NOPS
-
CLEANSTACK
public static final Script.VerifyFlag CLEANSTACK
-
CHECKLOCKTIMEVERIFY
public static final Script.VerifyFlag CHECKLOCKTIMEVERIFY
-
CHECKSEQUENCEVERIFY
public static final Script.VerifyFlag CHECKSEQUENCEVERIFY
-
-
Method Detail
-
values
public static Script.VerifyFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Script.VerifyFlag c : Script.VerifyFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Script.VerifyFlag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-