public abstract class Ripemd160 extends Object implements ByteTransformable, Serializable
| Constructor and Description |
|---|
Ripemd160(String hashValue)
Create a new wrapper for the given ripemd160 hash.
|
| Modifier and Type | Method and Description |
|---|---|
org.joou.UInteger |
getHashValue()
Get the wrapped hash value in its long representation.
|
int |
getNumberFromHash()
Convert the first four bytes of the hash into a number.
|
void |
setHashValue(byte[] hashValue)
Set the hash value by providing its decoded byte representation.
|
void |
setHashValue(String hashValue)
Set the hash value by providing its encoded String representation.
|
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
public Ripemd160(String hashValue)
hashValue - The hash to wrap.public int getNumberFromHash()
public org.joou.UInteger getHashValue()
public void setHashValue(byte[] hashValue)
hashValue - The hash to wrap.public void setHashValue(String hashValue)
hashValue - The hash to wrap.public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformabletoByteArray in interface ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.Copyright © 2019. All rights reserved.