Legal aspects of blockchain technology