A Java implementation of the Digitalcoin protocol