Interface ByteArray
- All Superinterfaces:
Comparable<ByteArray>
- All Known Subinterfaces:
EcdhSharedSecret, EcdsaSignature, SchnorrSignature
- All Known Implementing Classes:
ByteArrayBase, EcdhSharedSecretImpl, EcdsaSignatureImpl, SchnorrSignatureImpl, SecpFieldElementImpl, SecpXOnlyPubKeyImpl
An effectively-immutable sequence of bytes.
-
Method Summary
-
Method Details
-
bytes
byte[] bytes()Get the bytes as an array- Returns:
- the bytes as an array
-
formatHex
-
compareTo
For
ByteArraythis is a byte-by-byte, unsigned comparison.- Specified by:
compareToin interfaceComparable<ByteArray>- Parameters:
o-- Returns:
-
toInteger
Utility to convert big-endianbyte[]to integer- Parameters:
bytes- bytes- Returns:
- integer representation of big-endian bytes
-