Class EcdhSharedSecretImpl

java.lang.Object
org.bitcoinj.secp.internal.EcdhSharedSecretImpl
All Implemented Interfaces:
Comparable<ByteArray>, ByteArray, EcdhSharedSecret

public class EcdhSharedSecretImpl extends Object implements EcdhSharedSecret
A secp256k1 ECDH shared secret, stored as a ByteArray.
  • Constructor Details

    • EcdhSharedSecretImpl

      public EcdhSharedSecretImpl(byte[] bytes)
  • Method Details

    • bytes

      public byte[] bytes()
      Description copied from interface: ByteArray
      Get the bytes as an array
      Specified by:
      bytes in interface ByteArray
      Returns:
      the bytes as an array
    • hashCode

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

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