Package org.bitcoinj.wallet
Enum Wallet.MissingSigsMode
- java.lang.Object
-
- java.lang.Enum<Wallet.MissingSigsMode>
-
- org.bitcoinj.wallet.Wallet.MissingSigsMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Wallet.MissingSigsMode>
- Enclosing class:
- Wallet
public static enum Wallet.MissingSigsMode extends java.lang.Enum<Wallet.MissingSigsMode>
Enumerates possible resolutions for missing signatures.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description THROW
If signature is missing,TransactionSigner.MissingSignatureException
will be thrown for P2SH andECKey.MissingPrivateKeyException
for other tx types.USE_DUMMY_SIG
Missing signatures will be replaced by dummy sigs.USE_OP_ZERO
Input script will have OP_0 instead of missing signatures
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Wallet.MissingSigsMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Wallet.MissingSigsMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USE_OP_ZERO
public static final Wallet.MissingSigsMode USE_OP_ZERO
Input script will have OP_0 instead of missing signatures
-
USE_DUMMY_SIG
public static final Wallet.MissingSigsMode USE_DUMMY_SIG
Missing signatures will be replaced by dummy sigs. This is useful when you'd like to know the fee for a transaction without knowing the user's password, as fee depends on size.
-
THROW
public static final Wallet.MissingSigsMode THROW
If signature is missing,TransactionSigner.MissingSignatureException
will be thrown for P2SH andECKey.MissingPrivateKeyException
for other tx types.
-
-
Method Detail
-
values
public static Wallet.MissingSigsMode[] 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 (Wallet.MissingSigsMode c : Wallet.MissingSigsMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Wallet.MissingSigsMode 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
-
-