Packages

object CryptoUtil extends CryptoUtil

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CryptoUtil
  2. CryptoUtil
  3. BitcoinSLogger
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def doubleSHA256(bytes: ByteVector): DoubleSha256Digest

    Performs sha256(sha256(bytes)).

    Performs sha256(sha256(bytes)).

    Definition Classes
    CryptoUtil
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hmac512(key: ByteVector, data: ByteVector): ByteVector

    Calculates HMAC-SHA512(key, data)

    Calculates HMAC-SHA512(key, data)

    Definition Classes
    CryptoUtil
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. lazy val logger: Logger
    Definition Classes
    BitcoinSLogger
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def recoverPoint(x: BigInteger): (ECPoint, ECPoint)

    x

    x coordinate

    returns

    a tuple (p1, p2) where p1 and p2 are points on the curve and p1.x = p2.x = x p1.y is even, p2.y is odd

    Definition Classes
    CryptoUtil
  18. def recoverPublicKey(signature: ECDigitalSignature, message: ByteVector): (ECPublicKey, ECPublicKey)

    Recover public keys from a signature and the message that was signed.

    Recover public keys from a signature and the message that was signed. This method will return 2 public keys, and the signature can be verified with both, but only one of them matches that private key that was used to generate the signature.

    signature

    signature

    message

    message that was signed

    returns

    a (pub1, pub2) tuple where pub1 and pub2 are candidates public keys. If you have the recovery id then use pub1 if the recovery id is even and pub2 if it is odd

    Definition Classes
    CryptoUtil
  19. def ripeMd160(bytes: ByteVector): RipeMd160Digest

    Performs RIPEMD160(bytes).

    Performs RIPEMD160(bytes).

    Definition Classes
    CryptoUtil
  20. def sha1(bytes: ByteVector): Sha1Digest

    Performs SHA1(bytes).

    Performs SHA1(bytes).

    Definition Classes
    CryptoUtil
  21. def sha256(bits: BitVector): Sha256Digest

    Takes sha256(bits).

    Takes sha256(bits).

    Definition Classes
    CryptoUtil
  22. def sha256(bytes: ByteVector): Sha256Digest

    Takes sha256(bytes).

    Takes sha256(bytes).

    Definition Classes
    CryptoUtil
  23. def sha256Hash160(bytes: ByteVector): Sha256Hash160Digest

    Does the following computation: RIPEMD160(SHA256(hex)).

    Does the following computation: RIPEMD160(SHA256(hex)).

    Definition Classes
    CryptoUtil
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from CryptoUtil

Inherited from BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped