Class EncodedPrivateKey

java.lang.Object
org.bitcoinj.crypto.EncodedPrivateKey
Direct Known Subclasses:
BIP38PrivateKey, DumpedPrivateKey

public abstract class EncodedPrivateKey extends Object
Some form of string-encoded private key. This form is useful for noting them down, e.g. on paper wallets.
  • Field Details

    • network

      protected final Network network
    • bytes

      protected final byte[] bytes
  • Constructor Details

    • EncodedPrivateKey

      protected EncodedPrivateKey(Network network, byte[] bytes)
    • EncodedPrivateKey

      @Deprecated protected EncodedPrivateKey(NetworkParameters params, byte[] bytes)
      Deprecated.
  • Method Details

    • network

      public Network network()
      Get the network this data is prefixed with.
      Returns:
      the Network.
    • getParameters

      @Deprecated public final NetworkParameters getParameters()
      Deprecated.
      Returns:
      network this data is valid for
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object