The attractive advantages of ridesharing include reduced traffic congestion and shared travel costs for users and drivers. However, most existing rideshare systems rely on an intermediary to coordinate the service, creating a single point of failure and raising privacy issues about exposure through internal and external assaults. The suggested approach allows drivers to provide ridesharing services directly to riders without needing a central hub or reliable intermediary. Sharing trips may teach passengers and drivers about transportation logistics without requiring them to change their plans or costs. The suggested system employs a time-locked technique to solve these problems. A membership deposit system for ridesharing services uses smart contracts and zero-knowledge evidence gathering. In short, the driver and the passenger need to put up some deposit to prove they are serious about using the blockchain. Later, a driver must show the blockchain that he or she was at the agreed-upon pick-up location at the appointed time.