Chip-based electronic money