Package org.bitcoinj.protobuf.wallet
Enum Protos.Key.Type
- java.lang.Object
-
- java.lang.Enum<Protos.Key.Type>
-
- org.bitcoinj.protobuf.wallet.Protos.Key.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,java.io.Serializable
,java.lang.Comparable<Protos.Key.Type>
- Enclosing class:
- Protos.Key
public static enum Protos.Key.Type extends java.lang.Enum<Protos.Key.Type> implements com.google.protobuf.Internal.EnumLite
Protobuf enumwallet.Key.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DETERMINISTIC_KEY
A key that was derived deterministically.DETERMINISTIC_MNEMONIC
Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.ENCRYPTED_SCRYPT_AES
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curveORIGINAL
Unencrypted - Original bitcoin secp256k1 curve
-
Field Summary
Fields Modifier and Type Field Description static int
DETERMINISTIC_KEY_VALUE
A key that was derived deterministically.static int
DETERMINISTIC_MNEMONIC_VALUE
Not really a key, but rather contains the mnemonic phrase for a deterministic key hierarchy in the private_key field.static int
ENCRYPTED_SCRYPT_AES_VALUE
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curvestatic int
ORIGINAL_VALUE
Unencrypted - Original bitcoin secp256k1 curve
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Protos.Key.Type
forNumber(int value)
int
getNumber()
static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.Type>
internalGetValueMap()
static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier()
static Protos.Key.Type
valueOf(int value)
Deprecated.static Protos.Key.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Protos.Key.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORIGINAL
public static final Protos.Key.Type ORIGINAL
Unencrypted - Original bitcoin secp256k1 curve
ORIGINAL = 1;
-
ENCRYPTED_SCRYPT_AES
public static final Protos.Key.Type ENCRYPTED_SCRYPT_AES
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve
ENCRYPTED_SCRYPT_AES = 2;
-
DETERMINISTIC_MNEMONIC
public static final Protos.Key.Type 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
public static final Protos.Key.Type 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 Detail
-
ORIGINAL_VALUE
public static final int ORIGINAL_VALUE
Unencrypted - Original bitcoin secp256k1 curve
ORIGINAL = 1;
- See Also:
- Constant Field Values
-
ENCRYPTED_SCRYPT_AES_VALUE
public static final int ENCRYPTED_SCRYPT_AES_VALUE
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve
ENCRYPTED_SCRYPT_AES = 2;
- See Also:
- Constant Field Values
-
DETERMINISTIC_MNEMONIC_VALUE
public static final int DETERMINISTIC_MNEMONIC_VALUE
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;
- See Also:
- Constant Field Values
-
DETERMINISTIC_KEY_VALUE
public static final int DETERMINISTIC_KEY_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Protos.Key.Type[] 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 (Protos.Key.Type c : Protos.Key.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Protos.Key.Type 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
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
@Deprecated public static Protos.Key.Type valueOf(int value)
Deprecated.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:
value
- 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
-
forNumber
public static Protos.Key.Type forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.Type> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-