Enum Class Protos.Key.Type

java.lang.Object
java.lang.Enum<Protos.Key.Type>
org.bitcoinj.wallet.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
  • Enum Constant Details

    • 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 Details

    • ORIGINAL_VALUE

      public static final int ORIGINAL_VALUE
       Unencrypted - Original bitcoin secp256k1 curve 
       
      ORIGINAL = 1;
      See Also:
    • 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:
    • 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:
    • 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:
  • Method Details

    • values

      public static Protos.Key.Type[] 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

      public static Protos.Key.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static Protos.Key.Type valueOf(int value)
      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 name
      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()