blockchain legal definition