Class EncodedPrivateKey

  • Direct Known Subclasses:
    BIP38PrivateKey, DumpedPrivateKey

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

      • network

        protected final Network network
      • bytes

        protected final byte[] bytes
    • Constructor Detail

      • EncodedPrivateKey

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

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

      • 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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object