Towards an Ideal Electronic cash System