Package org.bitcoinj.crypto.internal
Class CryptoUtils
java.lang.Object
org.bitcoinj.crypto.internal.CryptoUtils
Utilities for the crypto module (e.g. using Bouncy Castle)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
digestRipeMd160
(byte[] input) Calculate RIPEMD160(input).static byte[]
sha256hash160
(byte[] input) Calculate RIPEMD160(SHA256(input)).
-
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)
-