Using blockchain for copyright and digital rights management