Secure and Efficient Implementation of Electronic Money