Templecoin core Java implementation