| 程序包 | 说明 |
|---|---|
| org.tron.tronj.crypto | |
| org.tron.tronj.crypto.tuweniTypes |
| 限定符和类型 | 方法和说明 |
|---|---|
Bytes |
SECP256K1.Signature.encodedBytes() |
Bytes |
SECP256K1.PublicKey.getEncodedBytes() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SECP256K1.PublicKey |
SECP256K1.PublicKey.create(Bytes encoded) |
static SECP256K1.Signature |
SECP256K1.Signature.decode(Bytes bytes) |
static boolean |
SECP256K1.verify(Bytes data,
SECP256K1.Signature signature,
SECP256K1.PublicKey pub)
Verifies the given ECDSA signature against the message bytes using the public key
bytes.
|
static boolean |
SECP256K1.verify(Bytes data,
SECP256K1.Signature signature,
SECP256K1.PublicKey pub,
UnaryOperator<Bytes> preprocessor)
Verifies the given ECDSA signature using the public key bytes against the message
bytes, previously passed through a preprocessor function, which is normally a
hashing function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
SECP256K1.verify(Bytes data,
SECP256K1.Signature signature,
SECP256K1.PublicKey pub,
UnaryOperator<Bytes> preprocessor)
Verifies the given ECDSA signature using the public key bytes against the message
bytes, previously passed through a preprocessor function, which is normally a
hashing function.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Bytes32
A
Bytes value that is guaranteed to contain exactly 32 bytes. |
interface |
MutableBytes
A mutable
Bytes value. |
interface |
MutableBytes32
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractBytes
An abstract
Bytes value that provides implementations of
AbstractBytes.equals(Object), AbstractBytes.hashCode() and AbstractBytes.toString(). |
class |
DelegatingBytes32
A class that holds and delegates all operations to its inner bytes field.
|
class |
MutableByteBufferWrappingBytes |
| 限定符和类型 | 字段和说明 |
|---|---|
static Bytes |
Bytes.EMPTY
The empty value (with 0 bytes).
|
| 限定符和类型 | 方法和说明 |
|---|---|
default Bytes |
Bytes.and(Bytes other)
Return a bit-wise AND of these bytes and the supplied bytes.
|
default Bytes |
Bytes.commonPrefix(Bytes other)
Return a slice over the common prefix between this set of bytes and another.
|
static Bytes |
Bytes.concatenate(Bytes... values)
Create a value containing the concatenation of the values provided.
|
static Bytes |
Bytes.concatenate(List<Bytes> values)
Create a value containing the concatenation of the values provided.
|
Bytes |
Bytes.copy()
Return a value equivalent to this one but guaranteed to 1) be deeply immutable
(i.e. the underlying value will be immutable) and 2) to not retain more bytes than
exposed by the value.
|
Bytes |
MutableByteBufferWrappingBytes.copy() |
static Bytes |
Bytes.fromBase64String(CharSequence str)
Parse a base 64 string into a
Bytes value. |
static Bytes |
Bytes.fromHexString(CharSequence str)
Parse a hexadecimal string into a
Bytes value. |
static Bytes |
Bytes.fromHexString(CharSequence str,
int destinationSize)
Parse a hexadecimal string into a
Bytes value. |
static Bytes |
Bytes.fromHexStringLenient(CharSequence str)
Parse a hexadecimal string into a
Bytes value. |
static Bytes |
Bytes.fromHexStringLenient(CharSequence str,
int destinationSize)
Parse a hexadecimal string into a
Bytes value of the provided size. |
static Bytes |
Bytes.minimalBytes(long value)
Return the smallest bytes value whose bytes correspond to the provided long.
|
default Bytes |
Bytes.not()
Return a bit-wise NOT of these bytes.
|
static Bytes |
Bytes.of(byte... bytes)
Create a value that contains the specified bytes in their specified order.
|
static Bytes |
Bytes.of(int... bytes)
Create a value that contains the specified bytes in their specified order.
|
static Bytes |
Bytes.ofUnsignedInt(long value)
Return a 4-byte value corresponding to the provided value interpreted as an
unsigned int.
|
static Bytes |
Bytes.ofUnsignedInt(long value,
ByteOrder order)
Return a 4-byte value corresponding to the provided value interpreted as an
unsigned int.
|
static Bytes |
Bytes.ofUnsignedLong(long value)
Return an 8-byte value corresponding to the provided value interpreted as an
unsigned long.
|
static Bytes |
Bytes.ofUnsignedLong(long value,
ByteOrder order)
Return an 8-byte value corresponding to the provided value interpreted as an
unsigned long.
|
static Bytes |
Bytes.ofUnsignedShort(int value)
Return a 2-byte value corresponding to the provided value interpreted as an
unsigned short.
|
static Bytes |
Bytes.ofUnsignedShort(int value,
ByteOrder order)
Return a 2-byte value corresponding to the provided value interpreted as an
unsigned short.
|
default Bytes |
Bytes.or(Bytes other)
Return a bit-wise OR of these bytes and the supplied bytes.
|
static Bytes |
Bytes.random(int size)
Generate random bytes.
|
static Bytes |
Bytes.random(int size,
Random generator)
Generate random bytes.
|
default Bytes |
Bytes.reverse()
Computes the reverse array of bytes of the current bytes.
|
default Bytes |
Bytes.shiftLeft(int distance)
Shift all bits in this value to the left.
|
default Bytes |
Bytes.shiftRight(int distance)
Shift all bits in this value to the right.
|
default Bytes |
Bytes.slice(int i)
Create a new value representing (a view of) a slice of the bytes of this value.
|
Bytes |
Bytes.slice(int i,
int length)
Create a new value representing (a view of) a slice of the bytes of this value.
|
Bytes |
DelegatingBytes32.slice(int index,
int length) |
Bytes |
UInt256.toMinimalBytes() |
Bytes |
UInt256Value.toMinimalBytes()
Provides the value as bytes without any leading zero bytes.
|
default Bytes |
Bytes.trimLeadingZeros()
Return a slice of representing the same value but without any leading zero bytes.
|
static Bytes |
Bytes.wrap(byte[] value)
Wrap the provided byte array as a
Bytes value. |
static Bytes |
Bytes.wrap(byte[] value,
int offset,
int length)
Wrap a slice of a byte array as a
Bytes value. |
static Bytes |
Bytes.wrap(Bytes... values)
Wrap a list of other values into a concatenated view.
|
static Bytes |
Bytes.wrapBuffer(io.vertx.core.buffer.Buffer buffer)
Wrap a full Vert.x
Buffer as a Bytes value. |
static Bytes |
Bytes.wrapBuffer(io.vertx.core.buffer.Buffer buffer,
int offset,
int size)
Wrap a slice of a Vert.x
Buffer as a Bytes value. |
static Bytes |
Bytes.wrapByteBuf(io.netty.buffer.ByteBuf byteBuf)
Wrap a full Netty
ByteBuf as a Bytes value. |
static Bytes |
Bytes.wrapByteBuf(io.netty.buffer.ByteBuf byteBuf,
int offset,
int size)
Wrap a slice of a Netty
ByteBuf as a Bytes value. |
static Bytes |
Bytes.wrapByteBuffer(ByteBuffer byteBuffer)
Wrap a full Java NIO
ByteBuffer as a Bytes value. |
static Bytes |
Bytes.wrapByteBuffer(ByteBuffer byteBuffer,
int offset,
int size)
Wrap a slice of a Java NIO
ByteBuf as a Bytes value. |
default Bytes |
Bytes.xor(Bytes other)
Return a bit-wise XOR of these bytes and the supplied bytes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default Bytes |
Bytes.and(Bytes other)
Return a bit-wise AND of these bytes and the supplied bytes.
|
default <T extends MutableBytes> |
Bytes.and(Bytes other,
T result)
Calculate a bit-wise AND of these bytes and the supplied bytes.
|
default Bytes |
Bytes.commonPrefix(Bytes other)
Return a slice over the common prefix between this set of bytes and another.
|
default int |
Bytes.commonPrefixLength(Bytes other)
Return the number of bytes in common between this set of bytes and another.
|
default int |
Bytes.compareTo(Bytes b) |
static Bytes |
Bytes.concatenate(Bytes... values)
Create a value containing the concatenation of the values provided.
|
static UInt256 |
UInt256.fromBytes(Bytes bytes)
Return a
UInt256 containing the value described by the specified bytes. |
static Bytes32 |
Bytes32.leftPad(Bytes value)
|
default Bytes |
Bytes.or(Bytes other)
Return a bit-wise OR of these bytes and the supplied bytes.
|
default <T extends MutableBytes> |
Bytes.or(Bytes other,
T result)
Calculate a bit-wise OR of these bytes and the supplied bytes.
|
static Bytes32 |
Bytes32.rightPad(Bytes value)
|
default void |
MutableBytes.set(int offset,
Bytes bytes)
Set a byte in this value.
|
static Bytes |
Bytes.wrap(Bytes... values)
Wrap a list of other values into a concatenated view.
|
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 Bytes |
Bytes.xor(Bytes other)
Return a bit-wise XOR of these bytes and the supplied bytes.
|
default <T extends MutableBytes> |
Bytes.xor(Bytes other,
T result)
Calculate a bit-wise XOR of these bytes and the supplied bytes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Bytes |
Bytes.concatenate(List<Bytes> values)
Create a value containing the concatenation of the values provided.
|
| 构造器和说明 |
|---|
DelegatingBytes32(Bytes delegate) |
Copyright © 2021. All rights reserved.