Package org.bitcoinj.crypto.internal
Class CryptoUtils
- java.lang.Object
-
- org.bitcoinj.crypto.internal.CryptoUtils
-
public class CryptoUtils extends java.lang.Object
Utilities for the crypto module (e.g. using Bouncy Castle)
-
-
Constructor Summary
Constructors Constructor Description CryptoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
digestRipeMd160(byte[] input)
Calculate RIPEMD160(input).static byte[]
sha256hash160(byte[] input)
Calculate RIPEMD160(SHA256(input)).
-
-
-
Method Detail
-
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)
-
-