In a smart city, smart parking systems generally strive to facilitate the renting of available private parking spaces to vehicle users (just like timesharing). Existing technologies can authenticate and manage parking spaces and vehicles, but they do not address the need to preserve users' privacy. This article presents the framework for a blockchainbased parking-management system designed to preserve the privacy of its users, without relying on a reliable third-party entity. The proposed system integrates BlockChainOpenSource (BCOS) and smart contract technology to share parking spaces.