public static enum Protos.Key.Type extends Enum<Protos.Key.Type> implements com.google.protobuf.ProtocolMessageEnum
wallet.Key.Type
Enum Constant and Description |
---|
DETERMINISTIC_KEY
DETERMINISTIC_KEY = 4; |
DETERMINISTIC_MNEMONIC
DETERMINISTIC_MNEMONIC = 3; |
ENCRYPTED_SCRYPT_AES
ENCRYPTED_SCRYPT_AES = 2; |
ORIGINAL
ORIGINAL = 1; |
Modifier and Type | Field and Description |
---|---|
static int |
DETERMINISTIC_KEY_VALUE
DETERMINISTIC_KEY = 4; |
static int |
DETERMINISTIC_MNEMONIC_VALUE
DETERMINISTIC_MNEMONIC = 3; |
static int |
ENCRYPTED_SCRYPT_AES_VALUE
ENCRYPTED_SCRYPT_AES = 2; |
static int |
ORIGINAL_VALUE
ORIGINAL = 1; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.Type> |
internalGetValueMap() |
static Protos.Key.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.Key.Type |
valueOf(int value) |
static Protos.Key.Type |
valueOf(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.
|
public static final Protos.Key.Type ORIGINAL
ORIGINAL = 1;
Unencrypted - Original bitcoin secp256k1 curve
public static final Protos.Key.Type ENCRYPTED_SCRYPT_AES
ENCRYPTED_SCRYPT_AES = 2;
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve
public static final Protos.Key.Type DETERMINISTIC_MNEMONIC
DETERMINISTIC_MNEMONIC = 3;
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.
public static final Protos.Key.Type DETERMINISTIC_KEY
DETERMINISTIC_KEY = 4;
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.
public static final int ORIGINAL_VALUE
ORIGINAL = 1;
Unencrypted - Original bitcoin secp256k1 curve
public static final int ENCRYPTED_SCRYPT_AES_VALUE
ENCRYPTED_SCRYPT_AES = 2;
Encrypted with Scrypt and AES - Original bitcoin secp256k1 curve
public static final int DETERMINISTIC_MNEMONIC_VALUE
DETERMINISTIC_MNEMONIC = 3;
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.
public static final int DETERMINISTIC_KEY_VALUE
DETERMINISTIC_KEY = 4;
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.
public static Protos.Key.Type[] values()
for (Protos.Key.Type c : Protos.Key.Type.values()) System.out.println(c);
public static Protos.Key.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static Protos.Key.Type valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Key.Type> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.Key.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2014. All rights reserved.