Package org.bitcoinj.wallet
Enum Class Protos.Key.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<Protos.Key.Type>
,Constable
- Enclosing class:
- Protos.Key
public static enum Protos.Key.Type
extends Enum<Protos.Key.Type>
implements com.google.protobuf.Internal.EnumLite
Protobuf enum
wallet.Key.Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA key that was derived deterministically.Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.Encrypted with Scrypt and AES - Original bitcoin secp256k1 curveUnencrypted - Original bitcoin secp256k1 curve -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A key that was derived deterministically.static final int
Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.static final int
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curvestatic final int
Unencrypted - Original bitcoin secp256k1 curve -
Method Summary
Modifier and TypeMethodDescriptionstatic Protos.Key.Type
forNumber
(int value) final int
static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.Type>
static com.google.protobuf.Internal.EnumVerifier
static Protos.Key.Type
valueOf
(int value) Deprecated.static Protos.Key.Type
Returns the enum constant of this class with the specified name.static Protos.Key.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORIGINAL
Unencrypted - Original bitcoin secp256k1 curve
ORIGINAL = 1;
-
ENCRYPTED_SCRYPT_AES
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve
ENCRYPTED_SCRYPT_AES = 2;
-
DETERMINISTIC_MNEMONIC
Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field. The label and public_key fields are missing. Creation timestamp will exist.
DETERMINISTIC_MNEMONIC = 3;
-
DETERMINISTIC_KEY
A key that was derived deterministically. Note that the root seed that created it may NOT be present in the wallet, for the case of watching wallets. A deterministic key may or may not have the private key bytes present. However the public key bytes and the deterministic_key field are guaranteed to exist. In a wallet where there is a path from this key up to a key that has (possibly encrypted) private bytes, it's expected that the private key can be rederived on the fly.
DETERMINISTIC_KEY = 4;
-
-
Field Details
-
ORIGINAL_VALUE
public static final int ORIGINAL_VALUEUnencrypted - Original bitcoin secp256k1 curve
ORIGINAL = 1;
- See Also:
-
ENCRYPTED_SCRYPT_AES_VALUE
public static final int ENCRYPTED_SCRYPT_AES_VALUEEncrypted with Scrypt and AES - Original bitcoin secp256k1 curve
ENCRYPTED_SCRYPT_AES = 2;
- See Also:
-
DETERMINISTIC_MNEMONIC_VALUE
public static final int DETERMINISTIC_MNEMONIC_VALUENot really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field. The label and public_key fields are missing. Creation timestamp will exist.
DETERMINISTIC_MNEMONIC = 3;
- See Also:
-
DETERMINISTIC_KEY_VALUE
public static final int DETERMINISTIC_KEY_VALUEA key that was derived deterministically. Note that the root seed that created it may NOT be present in the wallet, for the case of watching wallets. A deterministic key may or may not have the private key bytes present. However the public key bytes and the deterministic_key field are guaranteed to exist. In a wallet where there is a path from this key up to a key that has (possibly encrypted) private bytes, it's expected that the private key can be rederived on the fly.
DETERMINISTIC_KEY = 4;
- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
Deprecated.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:
value
- 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
-
forNumber
-
internalGetValueMap
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-