Package | Description |
---|---|
org.tron.common.crypto |
Modifier and Type | Field and Description |
---|---|
static Sha256Hash |
Sha256Hash.ZERO_HASH |
Modifier and Type | Method and Description |
---|---|
static Sha256Hash |
Sha256Hash.create(byte[] contents)
Deprecated.
|
static Sha256Hash |
Sha256Hash.createDouble(byte[] contents)
Deprecated.
|
static Sha256Hash |
Sha256Hash.of(byte[] contents)
Creates a new instance containing the calculated (one-time) hash of the given bytes.
|
static Sha256Hash |
Sha256Hash.of(File file)
Creates a new instance containing the calculated (one-time) hash of the given file's contents.
|
static Sha256Hash |
Sha256Hash.twiceOf(byte[] contents)
Creates a new instance containing the hash of the calculated hash of the given bytes.
|
static Sha256Hash |
Sha256Hash.wrap(byte[] rawHashBytes)
Creates a new instance that wraps the given hash value.
|
static Sha256Hash |
Sha256Hash.wrap(com.google.protobuf.ByteString rawHashByteString) |
Modifier and Type | Method and Description |
---|---|
int |
Sha256Hash.compareTo(Sha256Hash other) |
Constructor and Description |
---|
Sha256Hash(long num,
Sha256Hash hash) |
Copyright © 2020. All rights reserved.