Protecting patents and copyright with blockchain