Class CryptoUtils

java.lang.Object
org.bitcoinj.crypto.internal.CryptoUtils

public class CryptoUtils extends Object
Utilities for the crypto module (e.g. using Bouncy Castle)
  • Constructor Details

    • CryptoUtils

      public CryptoUtils()
  • Method Details

    • sha256hash160

      public static byte[] sha256hash160(byte[] input)
      Calculate RIPEMD160(SHA256(input)). This is used in Address calculations.
      Parameters:
      input - bytes to hash
      Returns:
      RIPEMD160(SHA256(input))
    • digestRipeMd160

      public static byte[] digestRipeMd160(byte[] input)
      Calculate RIPEMD160(input).
      Parameters:
      input - bytes to hash
      Returns:
      RIPEMD160(input)