Both. Dash uses a mining layer (proof-of-work) and a validating layer (proof-of-stake) to ensure security. The mining layer processes regular transactions while the validating layer, also called the masternode layer, processes the transactions that make Dash fast.