Package org.ldk.structs
Class Sha256
- java.lang.Object
-
- org.ldk.structs.Sha256
-
public class Sha256 extends Object
SHA-256 hash
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Sha256clone()Creates a copy of the Sha256booleaneq(Sha256 b)Checks if two Sha256s contain equal inner contents.booleanequals(Object o)protected voidfinalize()static Sha256from_bytes(byte[] bytes)Constructs a new [`Sha256`] from the given bytes, which are assumed to be the output of a single sha256 hash.longhash()Generates a non-cryptographic 64-bit hash of the Sha256.inthashCode()
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
hash
public long hash()
Generates a non-cryptographic 64-bit hash of the Sha256.
-
eq
public boolean eq(Sha256 b)
Checks if two Sha256s contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
from_bytes
public static Sha256 from_bytes(byte[] bytes)
Constructs a new [`Sha256`] from the given bytes, which are assumed to be the output of a single sha256 hash.
-
-