update

transplanting ripple-lib (javascript) code to Java