This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.io.*; | |
public class MoneroBase58 { | |
private static final char[] ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".toCharArray(); | |
private static final int[] INDEXES = new int[128]; | |
static { | |
Arrays.fill(INDEXES, -1); | |
for (int i = 0; i < ALPHABET.length; i++) { |