code for a secure wallet