If a community of people agrees to use something as a way of exchanging value, that medium becomes currency.