Refactored BCWallet class