Package org.bitcoinj.wallet
Enum Class Wallet.MissingSigsMode
- All Implemented Interfaces:
Serializable
,Comparable<Wallet.MissingSigsMode>
,Constable
- Enclosing class:
- Wallet
Enumerates possible resolutions for missing signatures.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf signature is missing,TransactionSigner.MissingSignatureException
will be thrown for P2SH andECKey.MissingPrivateKeyException
for other tx types.Missing signatures will be replaced by dummy sigs.Input script will have OP_0 instead of missing signatures -
Method Summary
Modifier and TypeMethodDescriptionstatic Wallet.MissingSigsMode
Returns the enum constant of this class with the specified name.static Wallet.MissingSigsMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USE_OP_ZERO
Input script will have OP_0 instead of missing signatures -
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
If signature is missing,TransactionSigner.MissingSignatureException
will be thrown for P2SH andECKey.MissingPrivateKeyException
for other tx types.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-