File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/codec/binary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,22 +163,22 @@ public Base58(final Builder builder) {
163163 * binary data.
164164 * </p>
165165 *
166- * @param base58Data the Base58 encoded data.
166+ * @param base58 the Base58 encoded data.
167167 * @param context the context for this decoding operation.
168168 * @throws IllegalArgumentException if the Base58 data contains invalid characters.
169169 */
170- private void convertFromBase58 (final byte [] base58Data , final Context context ) {
170+ private void convertFromBase58 (final byte [] base58 , final Context context ) {
171171 BigInteger value = BigInteger .ZERO ;
172172 int leadingOnes = 0 ;
173- for (final byte b : base58Data ) {
173+ for (final byte b : base58 ) {
174174 if (b != '1' ) {
175175 break ;
176176 }
177177 leadingOnes ++;
178178 }
179179 BigInteger power = BigInteger .ONE ;
180- for (int i = base58Data .length - 1 ; i >= leadingOnes ; i --) {
181- final byte b = base58Data [i ];
180+ for (int i = base58 .length - 1 ; i >= leadingOnes ; i --) {
181+ final byte b = base58 [i ];
182182 final int digit = b < DECODE_TABLE .length ? DECODE_TABLE [b ] : -1 ;
183183 if (digit < 0 ) {
184184 throw new IllegalArgumentException (String .format ("Invalid character in Base58 string: 0x%02x" , b ));
You can’t perform that action at this time.
0 commit comments