| 程序包 | 说明 |
|---|---|
| org.tron.tronj.crypto | |
| org.tron.tronj.crypto.tuweniTypes |
| 限定符和类型 | 方法和说明 |
|---|---|
static Bytes32 |
SECP256K1.calculateECDHKeyAgreement(SECP256K1.PrivateKey privKey,
SECP256K1.PublicKey theirPubKey)
Calculates an ECDH key agreement between the private and the public key.
|
Bytes32 |
SECP256K1.PrivateKey.getEncodedBytes() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SECP256K1.PrivateKey |
SECP256K1.PrivateKey.create(Bytes32 key) |
static SECP256K1.Signature |
SECP256K1.normaliseSignature(BigInteger nativeR,
BigInteger nativeS,
SECP256K1.PublicKey publicKey,
Bytes32 dataHash) |
static Optional<SECP256K1.PublicKey> |
SECP256K1.PublicKey.recoverFromSignature(Bytes32 dataHash,
SECP256K1.Signature signature) |
static SECP256K1.Signature |
SECP256K1.sign(Bytes32 dataHash,
SECP256K1.KeyPair keyPair) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
MutableBytes32
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DelegatingBytes32
A class that holds and delegates all operations to its inner bytes field.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static Bytes32 |
Bytes32.ZERO
A
Bytes32 containing all zero bytes |
| 限定符和类型 | 方法和说明 |
|---|---|
default Bytes32 |
Bytes32.and(Bytes32 other)
Return a bit-wise AND of these bytes and the supplied bytes.
|
Bytes32 |
Bytes32.copy() |
Bytes32 |
DelegatingBytes32.copy() |
static Bytes32 |
Bytes32.fromHexString(CharSequence str)
Parse a hexadecimal string into a
Bytes32. |
static Bytes32 |
Bytes32.fromHexStringLenient(CharSequence str)
Parse a hexadecimal string into a
Bytes32. |
static Bytes32 |
Bytes32.fromHexStringStrict(CharSequence str)
Parse a hexadecimal string into a
Bytes32. |
static Bytes32 |
Bytes32.leftPad(Bytes value)
|
default Bytes32 |
Bytes32.not() |
default Bytes32 |
Bytes32.or(Bytes32 other)
Return a bit-wise OR of these bytes and the supplied bytes.
|
static Bytes32 |
Bytes32.random()
Generate random bytes.
|
static Bytes32 |
Bytes32.random(Random generator)
Generate random bytes.
|
static Bytes32 |
Bytes32.rightPad(Bytes value)
|
default Bytes32 |
Bytes32.shiftLeft(int distance) |
default Bytes32 |
Bytes32.shiftRight(int distance) |
Bytes32 |
UInt256.toBytes() |
Bytes32 |
UInt256Value.toBytes()
Provides the value as bytes.
|
static Bytes32 |
Bytes32.wrap(byte[] bytes)
Wrap the provided byte array, which must be of length 32, as a
Bytes32. |
static Bytes32 |
Bytes32.wrap(byte[] bytes,
int offset)
Wrap a slice/sub-part of the provided array as a
Bytes32. |
static Bytes32 |
Bytes32.wrap(Bytes value)
Wrap a the provided value, which must be of size 32, as a
Bytes32. |
static Bytes32 |
Bytes32.wrap(Bytes value,
int offset)
Wrap a slice/sub-part of the provided value as a
Bytes32. |
default Bytes32 |
Bytes32.xor(Bytes32 other)
Return a bit-wise XOR of these bytes and the supplied bytes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default Bytes32 |
Bytes32.and(Bytes32 other)
Return a bit-wise AND of these bytes and the supplied bytes.
|
UInt256 |
UInt256.and(Bytes32 bytes)
Return a bit-wise AND of this value and the supplied bytes.
|
default Bytes32 |
Bytes32.or(Bytes32 other)
Return a bit-wise OR of these bytes and the supplied bytes.
|
UInt256 |
UInt256.or(Bytes32 bytes)
Return a bit-wise OR of this value and the supplied bytes.
|
default Bytes32 |
Bytes32.xor(Bytes32 other)
Return a bit-wise XOR of these bytes and the supplied bytes.
|
UInt256 |
UInt256.xor(Bytes32 bytes)
Return a bit-wise XOR of this value and the supplied bytes.
|
Copyright © 2021. All rights reserved.