Java implementation of uCoin protocol