Java implementation of Betacoin