Skip to content

Commit

Permalink
Update xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/addresses/Unsi…
Browse files Browse the repository at this point in the history
…gnedByteArray.java

Co-authored-by: nkramer44 <[email protected]>
  • Loading branch information
sappenin and nkramer44 authored Oct 4, 2023
1 parent ad21765 commit f890042
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static UnsignedByteArray of(UnsignedByte first, UnsignedByte... rest) {
* <p>This function primarily exists to ensure that transformation of secp256k1 private keys from one form to another
* (e.g., from {@link BigInteger} to a byte array) are done in a consistent manner, always yielding the desired number
* of bytes. For example, secp256k1 private keys are 32-bytes long naturally. However, when transformed to a byte
* array via `BigInteger.toByteArray()`, the result will not always have the same number of leading zero bytes that
* array via {@link BigInteger#toByteArray()}, the result will not always have the same number of leading zero bytes that
* one might expect. Sometimes the returned array will have 33 bytes, one of which is a zero-byte prefix pad that is
* meant to ensure the underlying number is not represented as a negative number. Other times, the array will have
* fewer than 32 bytes, for example 31 or even 30, if the byte array has redundant leading zero bytes.
Expand Down

0 comments on commit f890042

Please sign in to comment.