mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-11 17:55:53 +00:00
Sha256Hash: remark that it takes ownership of the byte array.
This commit is contained in:
parent
9814a6caba
commit
dfc9d3c924
@ -39,12 +39,11 @@ public class Sha256Hash implements Serializable, Comparable<Sha256Hash> {
|
||||
public static final Sha256Hash ZERO_HASH = new Sha256Hash(new byte[32]);
|
||||
|
||||
/**
|
||||
* Creates a Sha256Hash by wrapping the given byte array. It must be 32 bytes long.
|
||||
* Creates a Sha256Hash by wrapping the given byte array. It must be 32 bytes long. Takes ownership!
|
||||
*/
|
||||
public Sha256Hash(byte[] rawHashBytes) {
|
||||
checkArgument(rawHashBytes.length == 32);
|
||||
this.bytes = rawHashBytes;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user